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?
how to merge 2 layers using softlight or overlay in IM?
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: how to merge 2 layers using softlight or overlay in IM?
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!
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!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: how to merge 2 layers using softlight or overlay in IM?
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:
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.
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
the result is not the same effect with what preview in photoshop.the split line in the center is very ugly ,hard.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: how to merge 2 layers using softlight or overlay in IM?
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?
see another color background compare:
Re: how to merge 2 layers using softlight or overlay in IM?
is there any methed to generate beatiful effect such as seen in ps? can im do it?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.
i tested composing a background png with a transparent png , it seems the same ugly result.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: how to merge 2 layers using softlight or overlay in IM?
I don't know what you mean by beautiful effect?is there any methed to generate beatiful effect such as seen in ps? can im do it?
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?
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.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: how to merge 2 layers using softlight or overlay in IM?
Perhaps there is a bug in IM softlight. You might explain more clearly what the issue is and post in the bugs forum.