Page 1 of 1

Regression: may not write any output file, but advertizes success

Posted: 2019-01-29T01:26:38-07:00
by axeld
Hi there!
With recent versions (tested with 7.0.8-17 and 7.0.8-24), ImageMagick stumbles over this file Image when invoked like this:

Code: Select all

magick.exe convert floor.jpg -resize 600x500> -profile sRGB_v4_ICC_preference.icc output.png
There is no error message, and the application exits successfully. However, "output.png" does not exist.
An earlier version I still had here (6.9.3) has no issues creating the output file; it only shows the following message during conversion:

Code: Select all

convert.exe: color profile operates on another colorspace `icc' @ error/profile.c/ProfileImage/1022.
That output hints to some issues of the file itself; at least I couldn't make any sense of this color space warning.
The profile is a standard profile from http://www.color.org, identifying the file shows the following output:

Code: Select all

floor.jpg JPEG 400x250 400x250+0+0 8-bit sRGB 72804B 0.016u 0:00.002

Re: Regression: may not write any output file, but advertizes success

Posted: 2019-01-29T01:28:45-07:00
by axeld
Looks like there is an inccorect color profile attached to the image already that causes the warning. Might hint into the direction this bug is coming from.

Re: Regression: may not write any output file, but advertizes success

Posted: 2019-01-29T01:37:30-07:00
by snibgo
For IM v7, I suggest you use "magick", not "magick convert".

The input image is RGB, but has an embedded CMYK profile.

What is your platform? Windows will interpret your command up to the ">", then will redirect the output to a file. You need quotes around "600x500>" or an escape ^> or both.

Re: Regression: may not write any output file, but advertizes success

Posted: 2019-01-29T05:16:01-07:00
by axeld
"magick" and "magick convert" should be the same, right? I executed the line as is in PowerShell which seems to do the 'right' thing; it originated from a script without shell parsing, though.

Re: Regression: may not write any output file, but advertizes success

Posted: 2019-01-29T14:23:45-07:00
by fmw42
No, they are not the same. Magick convert reverts to IM 6 behavior similar to calling convert in IM 6. If you want IM 7 behavior then use just magick.

Re: Regression: may not write any output file, but advertizes success

Posted: 2019-01-30T04:13:24-07:00
by axeld
That's interesting! I could not find any documentation about the actual differences -- where can I get more information on that?

Re: Regression: may not write any output file, but advertizes success

Posted: 2019-01-30T06:18:53-07:00
by snibgo

Re: Regression: may not write any output file, but advertizes success

Posted: 2019-02-26T06:13:59-07:00
by axeld
Thanks for the link! I didn't watch out for "porting" when looking for it.

I've noticed there is a proper issue tracker at github, so I created a ticket over there: https://github.com/ImageMagick/ImageMagick/issues/1492
Please comment there if you have more input on this bug.