No Lightbox for some resized images

A user uploaded two similar images, one 1172x103 and the other 1180x82 pixels. I have my thumbnailing sizes set to 350x200 so these were both too big and resized to 350x30 and 350x24 pixels respectively. When the post is viewed the first image is lightboxed but the second isn’t.

I suspect this may be related to a bug that was fixed towards the end of last year…

It makes a statement that I think has been coded in…

  • It should probably need to exceed both dimensions, as opposed to just one – I can’t quite picture a use case where you would want an image that’s, say, 690×10 pixels (on the page) to be lightboxed.

I think the bug made lightboxing mandatory for any image bigger than 100x100, so I suspect the second image doesn’t get a lightbox because it’s intial height was less than 100 pixels. However, the resized image is now too small at 350x24 pixels for the text on it to be read and there’s no lightbox to allow the original image to be viewed.

2 Likes