RSS/Atom feed Twitter
Site is read-only, email is disabled

Discard text information.

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Discard text information. k1er0n-gnome@yahoo.co.uk 24 Nov 22:59
  Discard text information. Joao S. O. Bueno 25 Nov 11:06
Discard text information. k1er0n-gnome@yahoo.co.uk 29 Nov 15:10
k1er0n-gnome@yahoo.co.uk
2011-11-24 22:59:02 UTC (about 13 years ago)

Discard text information.

Hello

In the Layer menu, there is an item called "Discard text information". What options do I have for turning text layers into non-text ones in a script? gimp_image_merge_down() works, but it does other things I don't really need. Is there another option? Thanks.

Kieron

Joao S. O. Bueno
2011-11-25 11:06:45 UTC (about 13 years ago)

Discard text information.

On Thu, Nov 24, 2011 at 8:59 PM, wrote:

Hello

In the Layer menu, there is an item called "Discard text information". What options do I have for turning text layers into non-text ones in a script? gimp_image_merge_down() works, but it does other things I don't really need. Is there another option? Thanks.

Looks like we are missing a PDB way of doing it.

One thing to do is to "scale" the layer into itself - in Python you can call, for example:

dr.transform_scale(dr.offsets[0],dr.offsets[1],dr.offsets[0] + dr.width, dr.offsets[1] + dr.height,0,1,0,1,1)

("dr" being your layer, of course)

js ->

Kieron

_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-developer-list

k1er0n-gnome@yahoo.co.uk
2011-11-29 15:10:14 UTC (almost 13 years ago)

Discard text information.

On Fri, 25/11/11, Joao S. O. Bueno wrote:

On Thu, Nov 24, 2011 at 8:59 PM, wrote:

In the Layer menu, there is an item called "Discard text information". What options do I have for turning text layers into non-text ones in a script? gimp_image_merge_down() works, but it does other things I don't really need. Is there another option? Thanks.

Looks like we are missing a PDB way of doing it. One thing to do is to "scale" the layer into itself - in Python you can call, for example:

Thank you. I've realised that not being able to turn text layers into non-text ones wasn't actually the cause of my problem. It was actually a gimp_layer_new() call I used.

Some functions have "range" parameters which run from 0 to 255. Others have parameters which run from 0 to 1. The "opacity" parameter runs from 0 to 100. At least I know now.

Thank you for your suggestion, though.

Kieron