You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A JPEG with libjpeg quantization equivalent to zero quality to be output.
What actually happened?
A JPEG with libjpeg quantization equivalent to quality 75 was output
What are your OS, Python and Pillow versions?
OS: Linux
Python: 3.5
Pillow:
Comments
I do research in image compression and as part of that research I wanted to produce some quality 0 JPEG files, the quantization matrix for that should filled with 255, dumping the resulting JPEGs quantization tables with djpeg I see that they are quality 75, and from the source code it looks like quality=0 indicates to use the defaulty quality which is 75.
Quality zero is a completely valid quality for libjpeg, but it doesn't work in Pillow. I'm not sure how many people care about quality 0 JPEGs so it might not be worth fixing but I still figured I'd leave this here.
The text was updated successfully, but these errors were encountered:
What did you do?
What did you expect to happen?
A JPEG with libjpeg quantization equivalent to zero quality to be output.
What actually happened?
A JPEG with libjpeg quantization equivalent to quality 75 was output
What are your OS, Python and Pillow versions?
Comments
I do research in image compression and as part of that research I wanted to produce some quality 0 JPEG files, the quantization matrix for that should filled with 255, dumping the resulting JPEGs quantization tables with
djpeg
I see that they are quality 75, and from the source code it looks likequality=0
indicates to use the defaulty quality which is 75.Quality zero is a completely valid quality for libjpeg, but it doesn't work in Pillow. I'm not sure how many people care about quality 0 JPEGs so it might not be worth fixing but I still figured I'd leave this here.
The text was updated successfully, but these errors were encountered: