Page 1 of 1
how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T19:36:03-07:00
by linjuming
how to merge 2 layers using softlight or overlay in IM?
I study the compose method of imagemagic :
http://www.imagemagick.org/Usage/compose/
, but I can not find the method to output a png that the top layer with softlight or overlay.
the effect should be bellow:
Can anyone write down the code telling me how to output such a png?
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T21:17:36-07:00
by anthony
It is there...
http://www.imagemagick.org/Usage/#softlight
http://www.imagemagick.org/Usage/#overlay
Note 'overlay' and 'hardlight' are equivalent but with source and destination images swapped.
however I am not certain what you mean by 'output a PNG'
what is the problem? Just give a PNG as the output filename!
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T22:21:39-07:00
by linjuming
I want to generate a png file from the test.psd using IM.
test.psd file:
http://linjuming.zy1668.com/my_question ... k/test.zip
code:
Code: Select all
convert test.psd[1] test.psd[2] -alpha on -compose dissolve -define compose:args=50 -composite hello.png
result png file:
the result is not the same effect with what preview in photoshop.the split line in the center is very ugly ,hard.
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T22:31:19-07:00
by fmw42
IM converts PS background transparency into alpha transparency. Thus what you see in PS is not the same as what most other tools such as IM convert it into. Most other tools will convert PS background transparency into alpha transparency. So your PS channels will not be the same in IM.
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T22:31:37-07:00
by linjuming
see another color background compare:
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T22:37:51-07:00
by linjuming
fmw42 wrote:IM converts PS background transparency into alpha transparency. Thus what you see in PS is not the same as what most other tools such as IM convert it into. Most other tools will convert PS background transparency into alpha transparency. So your PS channels will not be the same in IM.
is there any methed to generate beatiful effect such as seen in ps? can im do it?
i tested composing a background png with a transparent png , it seems the same ugly result.
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T22:42:07-07:00
by fmw42
is there any methed to generate beatiful effect such as seen in ps? can im do it?
I don't know what you mean by beautiful effect?
If you are seeing some artifact, then perhaps it is your version of IM. You don't say what version or platform you are using? Perhaps upgrade to the latest version.
It could also be the way IM converts PSD channels. And there could be a bug. But you need to give an example that the conversion may be faulty.
Also PS may use some different method of softlight composition than in IM. IM uses the standard definitions. But Anthony can give you more information. I just don't know what PS is doing or if they deviate from the standard (as they often do in a number of things).
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-06T22:52:50-07:00
by linjuming
Thank you very much,I am using the latest version of IM in XP window system,I just want to try to generate css background images using ajax,for photoshop is not very handy when coding a html page then preview in browser. So if the IM can not do that effect,I will give up the thought and go back to PS.
Re: how to merge 2 layers using softlight or overlay in IM?
Posted: 2011-02-07T11:31:17-07:00
by fmw42
Perhaps there is a bug in IM softlight. You might explain more clearly what the issue is and post in the bugs forum.