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

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)
//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

//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
  edit psd file programmaticaly without open editor fabricia77 1 423 Dec 5, 2018 11:16
Last Post: paynekj
  edit psd file programmaticaly without open editor fabricia77 1 367 Dec 5, 2018 10:50
Last Post: paynekj
  Script-fu script to conversion pdf to image 4ever 12 14,828 Jul 17, 2018 16:01
Last Post: paynekj
  Vector input for polygon selection ss32 1 609 Feb 11, 2018 20:59
Last Post: paynekj
  Heal Selection / Resynthesizer Errors jitblass 1 1,100 Nov 7, 2017 13:56
Last Post: paynekj

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS