Page 1 of 1

Adding new layer in AI files.

Posted: 2018-02-01T12:21:25-07:00
by cyngt
Hello,

I am trying to find a way to add a watermark image (PNG or JPEG) as a new layer inside layered AI files. I have done this for PSD file with the following command.

convert ^
C:\TEMP\in.psd ^
C:\TEMP\watermark.png ^
-transparent white -background none c:\TEMP\out.psd

When I try similar approach using AI files IM merging all the layers. I need to keep the existing layers and add the new image as a new layer.

Is it possible?
Any recommendation would be appreciated!

Thanks!

Re: Adding new layer in AI files.

Posted: 2018-02-01T12:29:02-07:00
by fmw42
ImageMagick is a raster processor. It does not work well going from vector to vector format. It will rasterize your AI file and write out a rasterized image in a vector shell for your output AI. That is all vector objects will be come dots for each raster pixel. So I would look for some other tool. PSD is already a raster format, so you can do that with PSD.

See https://www.imagemagick.org/Usage/formats/#vector

Re: Adding new layer in AI files.

Posted: 2018-02-01T12:34:35-07:00
by cyngt
Thank you for the reply. It is good to know. I will look at those tools mentioned in the link.

Best