Page 2 of 2

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T11:54:09-07:00
by snibgo
You haven't linked to inputs or outputs, or said what is wrong with the output. So comment is difficult.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T12:40:31-07:00
by chaoscarnage
Does the command look right to you?

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T13:19:39-07:00
by fmw42
chaoscarnage wrote: 2018-08-06T10:58:55-07:00 After many many hours of work Imagemagick is finally working correctly (for the most part).

On 7.0.5-7 this worked.

Code: Select all

convert "inline:PNG64DATA" "MULTIPLY_IMG_1.png" -channel RGBA -compose Multiply -composite "MULTIPLY_IMG_2.png" -channel RGBA -compose Multiply -composite "SCREEN_IMG_1.png" -channel RGBA -compose Screen -composite "NEW_IMAGE.png"
I have tried changing convert to magick. I have already tried doing...

Code: Select all

magick "inline:PNG64DATA" \( "MULTIPLY_IMG_1.png" -channel RGBA -compose Multiply \) -composite \( "MULTIPLY_IMG_2.png" -channel RGBA -compose Multiply \) -composite \( "SCREEN_IMG_1.png" -channel RGBA -compose Screen \) -composite "NEW_IMAGE.png"
While both still compile an image it is an outline of whatever the PNG64DATA was instead of the full image. This was fully function for the last 8 months until the update, yesterday which is 7.0.8-8. Is there a simple fix, I really hope so.
You are presenting a totally different command now with a different input data.

Unless you send me your input data, I cannot test nor comment much about your command.

Try this with convert or magick. Also try upgrading to the latest IM versions 6.9.10.9 and 7.0.8.9 (available as of yesterday or this morning)

Code: Select all

magick "inline:PNG64DATA" "MULTIPLY_IMG_1.png" -channel RGBA -compose Multiply -composite \
"MULTIPLY_IMG_2.png" -channel RGBA -compose Multiply -composite \
"SCREEN_IMG_1.png" -channel RGBA -compose Screen -composite \
"NEW_IMAGE.png"
or

Code: Select all

magick "inline:PNG64DATA" "MULTIPLY_IMG_1.png" -channel RGBA -compose Multiply -composite \
"MULTIPLY_IMG_2.png" -channel RGBA -compose Multiply -composite \
"SCREEN_IMG_1.png" -channel RGBA -compose over -compose Screen -composite \
"NEW_IMAGE.png"
Are you sure your input data is base 64. You may not be reading it properly. See https://www.imagemagick.org/Usage/files/#inline

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T13:34:50-07:00
by chaoscarnage
I am 100% sure it is base64. All of this was working yesterday before the upgrade. I'll upgrade to 7.0.8.9 now.

Your Source is still 7.0.8.8, do you have an upgraded source? I've always built it from the source.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T14:08:37-07:00
by chaoscarnage
7.0.8-9 produces the same results at 8-8. I PMed fmw42 with a live example, please do not post any of it's contents.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T15:37:16-07:00
by fmw42
I build by getting all my delegates from MacPorts and install Imagemagick from source.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T15:53:33-07:00
by chaoscarnage
fmw42 wrote: 2018-08-06T15:37:16-07:00 I build by getting all my delegates from MacPorts and install Imagemagick from source.
Please let me know if you're able to get what I sent you working.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2018-08-06T16:28:13-07:00
by fmw42
I have sent you PM on this system. I can make it work with downloaded images rather than your base64 string and https links if I use IM 7.0.7.14 or lower, but it fails for any IM 7 above that. However it works fine in IM 6.9.10.9.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2019-02-16T15:24:25-07:00
by chaoscarnage
This bug has resurfaced. It worked in 7.0.8.11 but as of as least 7.0.8.25 and still does not work on .27, the image it produces a blank image.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2019-02-16T16:18:35-07:00
by fmw42
Please be more specific. What exactly does not work? Can you provide your data and command line?

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2019-02-16T16:24:34-07:00
by chaoscarnage
Absolutely, I sent you the code, the image in .11 and the images in anything after .25.

After the post from earlier today, I ran many more tests. It does appear that it is producing an image, simply an incorrect one. It is not longer combing the entire result it is simply keeping the first screen or multiple it creates and stops.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2019-02-16T17:55:23-07:00
by fmw42
I get a result for IM 6.9.10.27, though I cannot tell if correct or not since you did not produce a correct result for me to compare.

With IM 7.0.8.27 or IM 7.0.8.28 beta, I get an error message (on Mac OSX Sierra)

cannot execute: File name too long


I do not know why the inline image name is too long on IM 7, but fine on IM 6 (other than IM 7 is HDRI)

You should post this issue to the bugs forum.

Re: How do I Apply Multiple Screen and Multiply to one image?

Posted: 2019-02-17T15:06:50-07:00
by chaoscarnage
The image marked "Results in .11" is the correct image.

It does execute in Linux and does not error however, it is not producing the correct image. As shown in the message I sent you.

I posted the issue here, thank you for verifying that it is in fact not working.
viewtopic.php?f=3&t=35511

If you would like to add any information please feel free to post in that topic as well.