I never use PSNR, only rmse. Nevertheless, your comparison is unfair. You do not compare a TIF saved from Photoshop to either MP0.tif or MP1.tif from IM246246 wrote:Look carefully what I am checking. Converting to tiff from PSD results the same thing.
Mickey_PS.psd is made by Photoshop. (I don't know exactly how you made your PSD. In my case it is simply converted. It has only 1 layer.)
$ convert Mickey_PS.psd[0] MP0.tif
$ convert Mickey_PS.psd[1] MP1.tif
$ compare -metric PSNR -format "\n" MP[0].tif MP[1].tif null:
31.3439
$ compare -metric PSNR -format "\n" Mickey_Mouse.png MP[0].tif null:
31.3439
$ compare -metric PSNR -format "\n" Mickey_Mouse.png MP[1].tif null:
inf
The problem is that PSD[1] is not the same size as PSD[0]. PSD 1 is the size of my original Mickey PNG and has an offset. PSD 0 is the flattened PSD and has the larger size. Note that I opened the PNG into PSD and pasted it into a larger transparent background. So saving PSD 1 to TIFF will only have the size of my original and not the full size of the new PSD file246246 wrote: Converting from PSD[1] to Tiff does not alter anything. So there is no bug in converting process.
Code: Select all
convert mickey.psd mickey.tif
desktop fred$ identify mickey.tif
mickey.tif[1] TIFF 250x250 250x250+25+25 8-bit sRGB 674KB 0.000u 0:00.000
tif[1] looks fine, but is too small. tif[0] is the correct size, but has aliasing issues
True right now. That is what we are struggling to resolve. GIMP can convert PSD to TIFF just fine and it matches Photoshop conversion to TIFF. But IM has aliased away the boundary of the Mickey figure in its TIFF in comparison to the other two as shown in my animation246246 wrote: If you start from PSD[0], any conversion with IM cannot generate the same one as the original, because we don't know how Photoshop changed original to PSD[0].