Copy icc profile from one image file to another

Started by hauke, November 28, 2024, 11:50:42 AM

Previous topic - Next topic

hauke

In my workflow I convert tiff files to png using sips (on Mac):
sips -s format png -o myfile.png myfile.tiff(Actually I use an AppleScript with Image Events, but that seems to very much the same.)

Unfortunately Adobe products (and exiftool) don't seem to recognise the icc profile of the new png file. So I thought of copying the icc profile from the tiff to the png file, but couldn't figure out how. When I extract the profile using
exiftool -icc_profile -b -wI don't know the name of the resulting profile file. I could probably figure that out from the image file name, but it would be much more convenient to copy it directly from one image file to the other. Is that possible?

StarGeek

Try
exiftool -TagsFromFile myfile.tiff -icc_profile myfile.png

Or in batch, assiming the tiff and pngs are in the same directory
exiftool -ext png -TagsFromFile %d%f.tiff -icc_profile /path/to/files/
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype