Adjustment layers in IM?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
deepersee

Adjustment layers in IM?

Post by deepersee »

Hello,
Is it possible to handle Photoshop adjustment layers in IM?
I tried and searched but can't find something useful.

My aim is to handle PSD (or TIF) files with adjustment layers.
For example, if i have a file with one backround layer and 4 adjustment layers,
I want to put out an image (same Image) with backround layer/layer1/layer3 flattet (like Photoshop would be able to do).
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Adjustment layers in IM?

Post by fmw42 »

IM can process any layer in the photoshop file or multiple layers. But you will need to specify the layers you want to use. Note that layer 0 will already be the flattened composite of all the other layers. See frames in IM at

http://www.imagemagick.org/Usage/files/#read_mods
http://www.imagemagick.org/Usage/files/#write_seq

I think try something like:

convert image.psd[1,3,5] -background black -flatten resultimage.psd
deepersee

Re: Adjustment layers in IM?

Post by deepersee »

Thank you, but I only get results with layers with pixels or fill layers like (Photoshop called:) "solid color" or "gradient" etc.
I testet all adjustment layers (Levels,Curves,Color Balance, Brightness/Contrast, Hue/Saturation, Selective Color etc.) with
C:\Programme\ImageMagick-6.5.1-Q16\convert.exe input.psd[1,2,3...] -background black -flatten output.psd
but no one seems to be recognised/involved from IM.
Could this depend on my system (Windows XP;IM6.5.1-Q16), or on the code, or is it not possible actual?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Adjustment layers in IM?

Post by fmw42 »

Sorry, I did not understand. I don't believe IM understands PS "adjustment" layers, only real color layers. Perhaps one of the IM experts can clarify further.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Adjustment layers in IM?

Post by anthony »

The IM coder understands some layer 'compose' settings but not all of them. Its efforts to allow some of the layer types to work has in fact complicated the -compose -composite -flatten handling in IM.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
deepersee

Re: Adjustment layers in IM?

Post by deepersee »

Thank you.
Do you mean IM will understand it in future?
Do anybody have an idea of an allternative program to handle this similar to IM (GIMP can't understand Adj. layers from PS either)?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Adjustment layers in IM?

Post by anthony »

Gimp has its own 'layering' methods.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply