Viewing 1 replies (of 1 total)
  • Plugin Author attosoft

    (@attosoft)

    Thickbox automatically resizes images that do not fit in the browser window.

    Do not fit? ThickBox official site says that “ThickBox will resize images that are bigger than the browser window.”. So I think “ThickBox resizes images that do fit in the browser window.”.

    Anyway if you want to disable this feature, I think you need to modify thickbox.js and remove the following code between about line 116-130.

    if (imageWidth > x) {
    	imageHeight = imageHeight * (x / imageWidth);
    	imageWidth = x;
    	if (imageHeight > y) {
    		imageWidth = imageWidth * (y / imageHeight);
    		imageHeight = y;
    	}
    } else if (imageHeight > y) {
    	imageWidth = imageWidth * (y / imageHeight);
    	imageHeight = y;
    	if (imageWidth > x) {
    		imageHeight = imageHeight * (x / imageWidth);
    		imageWidth = x;
    	}
    }
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Auto Thickbox Plus] Possible to disable auto resizing of images?’ is closed to new replies.