Thanks
fmw42... I think I understand a bit better now.
I now have this for creating the PSD:
Code: Select all
convert -respect-parentheses ^
( -label "Height" 20150602_height.tiff ) ^
( -label "Intensity" 20150602_intensity.tiff ) ^
( -label "Classification" 20150602_classification.tiff ) ^
( -clone 0-2 -background none -flatten ) ^
-insert 0 ^
batch_work.psd
(If I have more than 3 files, I understand the "-clone 0-2" will have to change to "-clone 0--1" or "-clone 0-x" where x is count of [images - 1])
But I still have an issue with this creating a blue layer for "Intensity" (but only when opened in PhotoShop) - see
Issue 1 below.
To go back to TIFFs (from PSD), I have this:
Code: Select all
convert batch_work.psd[0] classification.tiff
convert batch_work.psd[1] height.tiff
convert batch_work.psd[2] intensity.tiff
(But this doesn't work so well if a layer is hidden in PhotoShop - see
Issue 2 below)
So, I have two remaining issues, and a couple questions.
Issue 1
RGB image (intensity) but grey-scale values (10, 10, 10) (200, 200, 200) etc.
When opened in PhotoShop is shades of blue?
Note that if I change the order so that intensity is last (in the code above, i.e. the top layer), the other 2 images appear as grey-scale.
However, if I do the first script, then,
without opening/saving the PSD file, run the second script, it all comes out as expected.
Suggestions?
Issue 2
Hidden layers in PSD not exported.
convert doesn't crash, but gives the nearest visible layer, I guess...
Is there a way to enforce that all layers are visible during this stage? Or perhaps ignore the visible state?
Questions
Where is the documentation for this method of extracting layers (or images) for a PSD (or multi-image image format)?
Code: Select all
convert in.psd[index] out.image_extension // documentation?
Can I query by layer name instead of index? (Perhaps the documentation would answer this...)
Code: Select all
convert in.psd[layer_name] out.image_extension
Thanks for any help!