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.
시도해 보았지만 여기서는 재현할 수 없습니다. meta가 max_image_width(690)와 max_image_height(500)의 기본값을 사용하고 있다고 의심합니다. 제 최대 너비는 350, 최대 높이는 200으로 설정되어 있습니다.
이로 인해 또 다른 문제가 드러났습니다. 테스트로 크기를 기본값인 690과 500으로 되돌려 보았더니, 설정값에는 690x500으로 표시되지만 이미지를 업로드하면 여전히 이전의 최대 크기인 350x200으로 리사이즈됩니다. Discourse를 재시작해 보았지만 기본값이 적용되지 않았습니다.