Hide a layer of a psd file

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?".
Locked
IMNewbWithQuestions
Posts: 3
Joined: 2020-01-22T07:46:28-07:00
Authentication code: 1152

Hide a layer of a psd file

Post by IMNewbWithQuestions »

Hello,

with the command line I am combining two images into a layered psd file. This has a color image as the background and a black/white layer on top of it - this will be used to mask the picture in the background.

The question now is, is there a way to disable that black and white layer when creating the psd file (so that you see the color image when opening the file in photoshop and not the black and white image)

Here's the command I am using right now:

Code: Select all

magick                   ^
  (                      ^
     -page +0+0          ^
     -label "label1"     ^
     alpha.png[0]        ^
     -background none    ^
     -mosaic             ^
     -set colorspace RGB ^
  )                      ^
  (                      ^
     -page +0+0          ^
     -label "label2"     ^
     color.jpg[0]        ^
     -background none    ^
     -mosaic             ^
     -set colorspace RGB ^
  )                      ^
  (                      ^
     -clone 0--1         ^
     -background none    ^
     -mosaic             ^
  )                      ^
     -alpha Off          ^
     -reverse            ^
  "out.psd"

User avatar
fmw42
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Hide a layer of a psd file

Post by fmw42 »

I do not believe ImageMagick has such a capability currently. PSD processing is limited.

Locked