Created
January 12, 2017 15:55
-
-
Save clemens/86b620e3f2dfbf1871ce1542df6bddbc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tmp[master]% convert logo.jpg -format png -colorspace srgb -profile ../vendor/profiles/sRGBColorSpaceProfile.icm logo.png | |
tmp[master]% rm logo.png | |
tmp[master]% cp logo.jpg logo.png | |
tmp[master]% mogrify -format png -colorspace srgb -profile ../vendor/profiles/sRGBColorSpaceProfile.icm logo.png | |
mogrify: improper image header `../vendor/profiles/sRGBColorSpaceProfile.icm' @ error/png.c/ReadPNGImage/3981. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In other words: Using
convert
with the exact same parameters works fine where as modifying the image in place usingmogrify
produces a warning. The resulting image seems to be fine though (can be opened just fine;pngcheck
returnsOK
). The only problem is thatmogrify
doesn't exit with status code 0, which obviously leads to issues.