Post Reply 

Image selection grow from psd path

Jan 20, 2014, 10:09 (This post was last modified: Jan 20, 2014 10:11 by dommer85.)
Post: #1
Image selection grow from psd path
Hi,

can anybody help me?
I want to read a psd-file with a path in it. (with python)
The next step is to convert the path to a selection, grow this selection an save the file as a psd with the new path in it.

I tried something like this but nothing worked:

image=pdb.gimp_file_load(file, file)
drawable = pdb.gimp_image_get_active_layer(image)
vectors=pdb.gimp_image_get_active_vectors(image)
//this one give me the correct name of the path in the psd file

//then i want to change this vector to an selection with this function
pdb.gimp_image_select_item(image, CHANNEL_OP_ADD, vectors)

//growing this selection
pdb.gimp_selection_grow(image, 10)

//saving this selection
pdb.gimp_selection_save(image)

//saving the file
pdb.gimp_file_save(RUN_NONINTERACTIVE, image, drawable, file, file)


But when I open the saved file the psd file is more than double as big as the original file without any paths in it...

Have anybody an idea? (I use gimp 2.8.0)
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Vector input for polygon selection ss32 1 150 Feb 11, 2018 20:59
Last Post: paynekj
  Heal Selection / Resynthesizer Errors jitblass 1 687 Nov 7, 2017 13:56
Last Post: paynekj
  Any plugin for open multiple image in paint.net shinprog 1 601 Oct 31, 2017 11:38
Last Post: paynekj
  Scale image to specific size MattRothschild 1 460 Sep 15, 2017 11:13
Last Post: ythgilb
  Dividing and printing a large image RayArdia 1 349 Aug 9, 2017 07:22
Last Post: ythgilb

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS