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

Accessing the thumbnail size preference from Python...

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.

Accessing the thumbnail size preference from Python... Ragnar Brynjúlfsson 14 Aug 15:57
  Accessing the thumbnail size preference from Python... Joao S. O. Bueno 14 Aug 16:51
   Accessing the thumbnail size preference from Python... Ragnar Brynjúlfsson 14 Aug 18:23
Ragnar Brynjúlfsson
2012-08-14 15:57:10 UTC (over 12 years ago)

Accessing the thumbnail size preference from Python...

Hi,

Is there a way to access what the thumbnail size (Edit>Preferences>Environment>Size of Thumbnails) is set to in the Gimp preferences from within my Python script?

My script currently uses the largest size thumbnails it can find of the .xcf files it uses, but I would prefer if it stuck to the thumbnail size the user has chosen in the preferences.

The script is available here http://registry.gimp.org/node/25975

Cheers,

Ragnar

Joao S. O. Bueno
2012-08-14 16:51:54 UTC (over 12 years ago)

Accessing the thumbnail size preference from Python...

On 14 August 2012 12:57, Ragnar Brynjúlfsson wrote:

Hi,

Is there a way to access what the thumbnail size (Edit>Preferences>Environment>Size of Thumbnails) is set to in the Gimp preferences from within my Python script?

No, there is no API for that.

The only ways of doing that are hacking around the application. One way I can think of would be to change GIMP's configuration files - but GIMP would have to be restarted for that to take effect.

js ->

My script currently uses the largest size thumbnails it can find of the .xcf files it uses, but I would prefer if it stuck to the thumbnail size the user has chosen in the preferences.

The script is available here http://registry.gimp.org/node/25975

Cheers,

Ragnar

Ragnar Brynjúlfsson
2012-08-14 18:23:38 UTC (over 12 years ago)

Accessing the thumbnail size preference from Python...

Thanks. It's not a big issue, so I'll manage fine without it.

On Tue, Aug 14, 2012 at 6:51 PM, Joao S. O. Bueno wrote:

On 14 August 2012 12:57, Ragnar Brynjlfsson wrote:

Hi,

Is there a way to access what the thumbnail size (Edit>Preferences>Environment>Size of Thumbnails) is set to in the Gimp preferences from within my Python script?

No, there is no API for that.

The only ways of doing that are hacking around the application. One way I can think of would be to change GIMP's configuration files - but GIMP would have to be restarted for that to take effect.

js ->

My script currently uses the largest size thumbnails it can find of the .xcf files it uses, but I would prefer if it stuck to the thumbnail size the user has chosen in the preferences.

The script is available here http://registry.gimp.org/node/25975

Cheers,

Ragnar

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