I have been converting several images that are larger than 2 MiB to be less than or equal to 2 MiB to make them compatible with SE's Imgur instance, which has a 2 MiB file size limit. This is because of an upcoming Imgur TOS change that could cause various non-SE Imgur images to be deleted (link leads to the relevant Meta SE post). In most cases, simply converting the images to JPG format with a file size of 2 MiB or slightly less is enough for SE Imgur to accept them without reducing the resolution.
However, for some very high-resolution images, I have noticed that SE Imgur will reduce the image resolution to approximately half of its original resolution if it is 789 KiB or larger; but it will not if it is 760 KiB or smaller. Since I have to target a very low file size of ≤ 760 KiB instead of ≤ 2 MiB to avoid halving the resolution, this requires lowering the image quality significantly.
The images that I have encountered this issue with are 5400 × 1398, 5500 × 5300, and 6093 × 5090 JPG images. Due to the limited sample size, I am not sure if it is simply a matter of file size.
Sample images — notice that if you try to convert these images to be ≤ 2 MiB and then upload the resulting image to SE Imgur, it will reduce their resolutions as I described above:
- https://i.imgur.com/VOELqR8.jpg - 5400 × 1398
- https://i.imgur.com/PuvvUPU.jpg - 5500 × 5300
- https://i.imgur.com/HRgupVM.jpg - 6093 × 5090
Makyen, in a comment, adds that a similar, possibly related issue affects PNGs:
SE's Imgur converts images in at least some other formats to JPG when the file size exceeds the 760 KiB mentioned here in the question. For images which are in a lossless format, this can make a striking difference in quality. For example, larger screen captures in PNG format will be auto-converted to JPG, which makes them harder to read and, potentially, introduces artifacts that may significantly alter the question or answers.
Since PNG is a lossless image format, converting a PNG image to JPG, a lossy image format, defeats the purpose of using PNGs in the first place.
To help users prepare their image files so that they are not reduced in resolution when uploaded to SE Imgur, I would like to ask:
What are the factors that cause SE's Imgur instance to reduce the resolution of uploaded images?
Specifically:
- What is the file size threshold that triggers SE Imgur to reduce to a lower resolution?
- What is the resolution threshold that triggers SE Imgur to reduce to a lower resolution?
- By how much does SE Imgur reduce the resolution and/or quality of images that exceed these thresholds?