Page 1 of 1
Compare .jpg original to saved .tif
Posted: 2018-07-27T23:29:03-07:00
by tackd
If I open an original .jpg file (original.jpg), and then save as .tif (saved.tif) without any edits or changes...
Souldn't the 2 images be the same since .tif does not recompress ?
When I do the above and use;
$ compare original.jpg saved.tif ComparedResult.png
Shouldn't there be no 'red' marks designating changes ?
Thank you.
Re: Compare .jpg original to saved .tif
Posted: 2018-07-28T04:36:57-07:00
by snibgo
tackd wrote:.... since .tif does not recompress
It does recompress, and it may be lossy compression that will change the pixel values.
For further help, you need to supply details: link to the original JPG and saved TIF, tell us how you saved as TIF (with IM or some other software), software versions, on what platform.
Re: Compare .jpg original to saved .tif
Posted: 2018-07-28T09:01:12-07:00
by tackd
-----------------------------------Method 2 Failed-------------------------------------------------------
1.
Original:
https://unsplash.com/photos/pHANr-CpbYM
2.
Filename: wil-stewart-18242-unsplash.jpg
3.
Export to uncompressed .tif (Below: XnViewMP v.90)
4.
Result: https://biz.kwamsook.com/ImageMagick/wi ... viewMP.png
5.
Comment: Differences shown in red, should be identical ?
-----------------------------------Method 2 Success------------------------------------------------------
I tried the above using imagemagick Version: 8:6.8.9.9-7ubuntu5.12
1. convert wil-stewart-18242-unsplash.jpg wil-stewart-18242-unsplash.tif
2. compare wil-stewart-18242-unsplash.jpg wil-stewart-18242-unsplash.tif wil_Result_im6.png
3. Result here:
https://biz.kwamsook.com/ImageMagick/wil_Result_im6.png
Wow... thank you ImageMagick. If I'm correct, XnViewMP is 'not' saving the .tif file unaltered, and ImageMagick 'is'.
When I save a .jpg to .tif (uncompressed) in imagemagick, it preserves the image quality of the expanded .jpg.
Is my conclusion correct ?
Thank you.
Re: Compare .jpg original to saved .tif
Posted: 2018-07-28T10:57:37-07:00
by snibgo
I don't have XnViewMP so can't verify that result.
Using IM to convert a JPG to a TIFF with no compression (or with a lossless compression such as LZW or ZIP) won't change pixels.