Ignoring "preview" layer while converting PSD to JPEG?
Posted: 2007-07-08T07:06:06-07:00
Is there a generic means of ignoring the "preview" layer in PSD files while flattening them to JPEG? When I do:
convert test.psd -flatten test.jpeg
I get a JPEG which is just the "preview" layer (as that is the last one in the file). If I do NOT use "-flatten", I get 2 JPEGs: one with the image layer (my test image has just a single layer) and another with the "preview" layer.
I realize I can do:
convert test.psd[0] test.jpeg
but I want to use this technique for PSDs I know nothing about. What I'd like is something like:
convert test.psd[0-(n-1)] -flatten test.jpg
Any ideas?
convert test.psd -flatten test.jpeg
I get a JPEG which is just the "preview" layer (as that is the last one in the file). If I do NOT use "-flatten", I get 2 JPEGs: one with the image layer (my test image has just a single layer) and another with the "preview" layer.
I realize I can do:
convert test.psd[0] test.jpeg
but I want to use this technique for PSDs I know nothing about. What I'd like is something like:
convert test.psd[0-(n-1)] -flatten test.jpg
Any ideas?