Minimise the destructive potential of saving your images as JPEGs
What about first-generation copies? There are plenty of situations where you only have a JPEG to work with and you need to edit it and resave as a JPEG. Providing the original hasn’t had a high degree of JPEG compression applied and you save the edited version using a high-quality, low-compression JPEG setting, you’d be hard pressed to see any difference.
To test the resilience of images to multiple iterations of the JPEG compression algorithm I subjected a test file to multiple saves with different compression settings and compared the results. My test file was an uncompressed eight-bit TIFF file produced from a camera Raw original.
I opened the TIFF in Photoshop and resaved it, using Save As and selecting JPEG as the file type. For the first test I used a quality setting of 10, which gave a 260KB file from the 1.1MB original, a compression factor of around four times. I saved the file 10 times, then compared it to the TIFF original.
The archetypal JPEG compression artefacts are blocking and haloing. Blocking describes unwanted colour differences in groups of neighbouring pixels and is usually most obvious in areas of flat colour. Haloing is manifested as a ring of light or dark coloured pixels surrounding contrasting detail and is the main reason for avoiding JPEG compression on images containing text.
Not only was I unable to spot any differences between the original TIFF and the tenth-generation JPEG copy, when I continued saving until I’d reached a one-hundredth generation copy it was still impossible to see any difference.
Increasing the degree of compression by lowering the quality setting to five produced a file size of 148KB. There was still no discernible difference between the tenth-generation JPEG file and the original, but by the one-hundredth iteration there was some evidence of blocking.
Finally, I reduced the quality setting to one, producing a 116KB file which, by the tenth iteration was looking ropey, but didn’t get much worse by the one-hundredth.
What these simple tests show is just how good JPEG compression is at reducing file sizes without noticeable loss in quality. At the higher end of the quality scale you can save a JPEG many times over with no apparent loss in quality. Even at medium compression settings you don’t need to worry too much about quality loss.
Related articles
Q.Why are some of the keys on my keyboard doing strange...
Q.Is my phone’s Bluetooth any use?
Q.Can I switch boot drives so that I can work on older...
St Helena, a 'small British village' in the mid-Atlantic, is seeking support and funding for a broadband connection
|
|
|
|
|
Computeractive Excel (2010) Online tutorialPrice: £19.99 |
Computeractive Word (2010) Online TutorialPrice: £19.99 |
Computeractive Powerpoint (2010) Online TutorialPrice: £19.99 |
Angry BirdsPrice: £9.99 |
Back Issue CD-Rom 14 (2011)Price: £15.99 |