Import SVG or PSD with separate layers

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Import SVG or PSD with separate layers

Post by alexlsg »

Hey guys, newbie question here! ; )

I have an Image Magick admin/backend on my Wordpress Website, set up like this were I have separate layers:

https://gyazo.com/ddf0089c20fce18636223788ebe822eb

Questions:

- Is it possible to import a PSD or SVG file and have it with separate layers on my ImageMagick Wordpress Admin/backend? Or do I need to individually save them as images and import them one by one?

Can I import a displacement map profile I created on Photoshop and have it on one of these layers?
Last edited by alexlsg on 2016-08-03T10:37:20-07:00, edited 2 times in total.
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Import SVG or PSD with separate layers

Post by alexlsg »

....
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Import SVG or PSD with separate layers

Post by snibgo »

IM can import separate PSD layers as separate raster images, but with some restrictions on the type of PSD layers it can read.

From an SVG file, IM can import only one raster image.
snibgo's IM pages: im.snibgo.com
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Import SVG or PSD with separate layers

Post by alexlsg »

So it should be possible to do this?

Exporting those PSD separate raster layers
https://gyazo.com/19aece34bfa4db63813535ae6fe454ff

And then importing the RASTER layers (shadow, softlight, displacement) on my ImageMagick Wordpress admin/backend
https://gyazo.com/ddf0089c20fce18636223788ebe822eb

Add "multiply", "mask""overlay", and "displacement" to respective layers

Voilá. Mockup ready for user to add his own artwork.


Would that work?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Import SVG or PSD with separate layers

Post by fmw42 »

IM does not understand adjustment layers or layer groups in PSD files. So unless your layers are not just simple ones, IM cannot export those. You could export them as single images from Photoshop. Then process them in IM.
alexlsg
Posts: 45
Joined: 2016-08-03T08:04:20-07:00
Authentication code: 1151

Re: Import SVG or PSD with separate layers

Post by alexlsg »

fmw42 wrote:IM does not understand adjustment layers or layer groups in PSD files. So unless your layers are not just simple ones, IM cannot export those. You could export them as single images from Photoshop. Then process them in IM.
Thanks Fred, that's what I will try to do! Will give an update here when I have something set up!
Post Reply