Sunday, 15 February 2015

How to extract images from a PSD file including images contained in a single layer -



How to extract images from a PSD file including images contained in a single layer -

i don't have much knowledge of imaging tools need extract images contained within layers of psd file. tried using gimp "save layers" plugin saving root layers ending 2 .pngs. need every image in separate file right sizes.

the reason need files have been asking create animation css using images. illustration animations @ http://srv1.contobox.com/frontend/ads/preview.html?id=981

the psd document trying extract https://www.dropbox.com/sh/ud2eaesej08o0g3/aaai-_pphgesofobpa0uqfjta

the problem these files structured layer groups (i opened 1 of them). while gimp supporting open file, "save layers" plug-in using not aware of layer groups.

(btw, gimp unstable - 2.9 development version broken opening psds - image opens garbled there. opens in gimp 2.8.10, though)

it possible save layers - including sublayers, separate images interaction in python console. psd beingness image open in gimp, go filters->python->console , type along this:

img = gimp.image_list()[0] # retrieves reference image folder = "/tmp/" # folder of selection saving files counter = 0 def save_recurse(item): global counter if hasattr(item, "layers"): layer in reversed(item.layers): save_recurse(layer) else: counter += 1 name = folder + "layer_%03d.png" % counter pdb.gimp_file_save(img, item, name, name) save_recurse(img)

(btw, typed here in way can re-create , paste listing above in gimp's python console)

image extract photoshop gimp psd

No comments:

Post a Comment