On Aug 4, 3:17 am, Bill Tuthill <ccree... RemoveThis @yahoo.com> wrote:
> In rec.photo.digital Martin Brown <|||newspam...@nezumi.demon.co.uk> wrote:
> > That makes sense - since even in compact "save for web" mode Photoshop
> > adds a small essay to the header of everyJPEGit saves. 32bit BMP
> > files could prossibly be smaller for anything < 32x32. And all bets
> > are off it is adds a 160x120 thumbnail in as well!
>
> Ha ha! Funny. The problem was that even in PNG it was Indexed color
Modern PhotoShop JPEGs are more than a bit voluminous. Each one
contains 2 identical thumnails in the header. And the highest quality
image Q=12 has a main JPEG stream 542 bytes long in a file totalling
over 22500 bytes. A back of the envelope calculation says it should
take about 1140 bytes for a genuine fully encoded legal JFIF file.
> Here they are, Photoshop quality 0 to 12. It's interesting that, for
> this image, PS quality=0 looks better than quality=2.
Sometimes happens. Some line art can become exact for lucky
combinations of custom quality table.
>
> http://www.cacreeks.com/psp
>
> Also, as previously observed, Photoshop quality < 7 is fairly worthless.
> Quality 6 is only a bit smaller than 7 but looks much worse. I have
> already run jpegdump so I know 7-6 is where Photoshop switches from
> 1x1 chroma to 2x2 chroma subsampling. TIA.
Thanks very much for the files.
OK here are the results (they match the old quality levels of
PhotoShop 5 + 2). Two extra compressed for web use new levels 0 and 1
have been added. The data below are based on least squares fitting of
the IJG scale factor to the actual PhotoShop quantisation tables with
the total residual as a measure of goodness (or badness) of fit.
I have done Y and C using IJG quality (100=best) separately for
reasons that should be obvious:
Level Y resid C resid
0 35 38k 81 16k
1 38 29k 82 13k
2 47 14k 84 7k
3 60 5k 86 4k
4 67 2250 87 2187
5 74 1003 89 930
6 82 254 91 299
* changes to 1x1 sampling
7 77 708 87 3200
8 85 140 89 1070
9 92 83 90 304
10 95 64 93 32
11 97 39 96 0
12 99 5 99 49
The highest quality 10,11,12 are a pretty good match to IJG. PhotoShop
has finer high frequency quantisation than the IJG tables at the lower
quality settings with a large triangular chunk of the matrix set to
12. The IJG values there are much coarser and explain the huge
residuals for low quality settings. The differences are so huge that
least squares may not be an appropriate fitting criterion - minimum 1
norm might be better.
I reckon PhotoShop tries a bit too hard at accurate quantisation of
the colour by using very high quality settings even at its lowest
quality. The luminence quantisation doesn't catch up until level 8.
Regards,
Martin Brown
>> Stay informed about: What program is best at JPEG compression?