Re: Convert Transparent TIF to Transparent PNG
Posted: 2014-03-18T11:47:04-07:00
It seems to me that the retouching staff could be given more explicit instructions about what they should produce.
Looking at FuzzyCoat.tif, I note that Microsoft Photo Viewer shows a transparent coat against a white background, while Gimp shows a black coat with a clip path. A plain IM conversion shows the same as MS Photo Viewer, but ...
... gives a good result -- the detailed coat against a transparent background. This ignores the clip path entirely.
So this suggests another approach that copes with your retouching staff doing their work in a random fashion. For each input file, create a load of outputs, each using a variety of random tools, eg:
Then a script can examine x0.png, x1.png etc to determine which one is best. The ideal image probably doesn't have many pure white or black pixels.
Looking at FuzzyCoat.tif, I note that Microsoft Photo Viewer shows a transparent coat against a white background, while Gimp shows a black coat with a clip path. A plain IM conversion shows the same as MS Photo Viewer, but ...
Code: Select all
convert FuzzyCoat.tif -channel A -negate f.png
So this suggests another approach that copes with your retouching staff doing their work in a random fashion. For each input file, create a load of outputs, each using a variety of random tools, eg:
Code: Select all
convert in.png
( +clone -write x0.png +delete )
( +clone -channel A -negate -write x1.png +delete )
( +clone -clip -alpha transparent +clip -channel A -negate -write x2.png +delete )
NULL: