Hello all,
Anyone here that can answer the following?
Using a illustrator file (.ai) that uses hidden layers, when IM creates a rendition will it flatten the file with the hidden layers or not?
I want IM to create the rendition file (.png) based on which layers being set to visible or not in Illustrator. The result today, but maybe I am doing something wrong(?), is a flatten file showing all layers - hidden and visible.
The same question for Photoshop - .psd files using layers.
I understand that the layers will not be preserved, but I want the flatten rendition file to leave out the hidden layers.
Can this be done in IM?
Hidden layers in illustrator/photoshop files
Re: Hidden layers in illustrator/photoshop files
Not sure about illustrator but with a psd file you can work with each layer and layer 0 should be the main layer containing all the others:
Try this:
Try this:
Code: Select all
convert image.psd[0] output.png
Re: Hidden layers in illustrator/photoshop files
Hi Bonzo,
Thanks for quick feedback!
Your solution suggest that you very clearly define each layer being used, correct?
So, if you tell IM to only convert layer 0 it will ignore all other layers - did I get it?
This gives, if I´m correct in my assumption, that I need to inform our users that all image info they want to have in the rendered output file (.png), they need to store in layer 0, otherwise it will not work.
Thanks for quick feedback!
Your solution suggest that you very clearly define each layer being used, correct?
So, if you tell IM to only convert layer 0 it will ignore all other layers - did I get it?
This gives, if I´m correct in my assumption, that I need to inform our users that all image info they want to have in the rendered output file (.png), they need to store in layer 0, otherwise it will not work.
Re: Hidden layers in illustrator/photoshop files
I have not worked with either of your formats but did some tests a couple of years ago and the results are here: http://www.rubblewebs.co.uk/imagemagick/psd.php
From memory the 0 layer is what you see if you saved the image in photoshop as a png and viewed it in a normal image viewer program.
From memory the 0 layer is what you see if you saved the image in photoshop as a png and viewed it in a normal image viewer program.