How do I export PSD layers as a single PNG 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?".
Post Reply
chico
Posts: 6
Joined: 2019-05-12T11:34:23-07:00
Authentication code: 1152

How do I export PSD layers as a single PNG file?

Post by chico »

This thread is related to this one:
Hello! My case is as follows:

I have a PSD with several layers, some of which are inside groups (probably nested inside other groups). I'd like to export multiple layers of my choice(...)
into a single PNG file that has an alpha channel and is the same size as the background layer.

I tried multiple times but I'm only getting multiple PNGs or a single PNG without the alpha channel (sometimes just a black file) out of the different PSD layers. Also I've noticed that the PNGs don't have the size of the canvas (they get trimmed by default for some reason).

IM Version: 7.0.8-24 Q16 x64 2019-01-17
Platform: Windows 7 x64

Source PSD (test file): https://www.dropbox.com/s/f2kqhijo8hwpp43/test.psd?dl=0
I can't share the original file because of the duty of confidentiality. Besides, to avoid any corruption I decided to use a dummy PSD to test the capabilities of IM.

Desired result (PNG file) https://www.dropbox.com/s/hxbce5r62xtks6h/test.png?dl=0
Last edited by chico on 2019-05-12T18:35:47-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do I export PSD layers as a single PNG file?

Post by fmw42 »

Please always provide your IM version and platform. Also perhaps post one of your PSD files to some free hosting service that will not change the format and put the URL here. Also show your command line, so we can see what you have tried.
chico
Posts: 6
Joined: 2019-05-12T11:34:23-07:00
Authentication code: 1152

Re: How do I export PSD layers as a single PNG file?

Post by chico »

Thanks for the reply! @fmw42 Unfortunately I tried the codes haphazardly, and erased all output files as they weren't what I wanted. I guess I'll have to go through that pain again haha I hope it helps some other poor soul like me.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How do I export PSD layers as a single PNG file?

Post by fmw42 »

I was asking for the input PSD and your command line.
Post Reply