imagemagickpngimagemagick-convertpsd

When converting a PSD to a PNG, the black border shadow disappears using ImageMagick


When converting a PSD to a PNG, the black border shadow disappears using ImageMagick

Original Image:

enter image description here

After converting losing black border shadow using imageMagick:

enter image description here

When converting a PSD to a PNG, the black border shadow disappears using ImageMagick

I tried with convert -limit memory 2GiB -quality 100% -alpha on “input.psd[0]" -resize 250x450 “output.png"

Please help me for block shadow issue.


Solution

  • The shadow effect in the PSD you shared isn't a normal bitmap layer - it is calculated and rendered by Photoshop internally. It is an "Effects Layer" and ImageMagick doesn't execute it. The easiest thing to do is use Photoshop's "Merge Visible to New Layer" command before you save it then it will become a top-most bitmap layer that ImageMagick can see.

    Click the yellow area, then, while holding Alt/Option click the pink area then save:

    enter image description here

    You can see what I mean about it being an "Effects Layer" if you look mid-way between the yellow and pink areas and see "Rectangle" and "fx" to the right of that.