Gimptalk - Premier Gimp Community: Accessing the save options for different file formats... - Gimptalk - Premier Gimp Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Accessing the save options for different file formats...

#1 User is offline   ragtag 

  • Member
  • PipPip
  • Group: Members
  • Posts: 74
  • Joined: 28-December 08

Posted 20 December 2011 - 07:20 AM

I'm working on the exporter for my comic book plug-in, and want to support at least xcf, png, tif, gif and jpg.

When saving in GIMP, you get a number of options for each format (LZW compression, include Alpha, JPG compression etc). Is it possible to access those interfaces from my Python plug-in, and just get the return values. So that when I export a whole book, each page can be saved using those options with the appropriate file-save-* procedure?

Preferably I would like the plug-in to support all the formats that the GIMP supports saving to, without actually implementing my own version of the GUI for each format. :)
Posted Image
Depending on where you work, site may be not safe for work. :)
0

#2 User is offline   ragtag 

  • Member
  • PipPip
  • Group: Members
  • Posts: 74
  • Joined: 28-December 08

Posted 22 December 2011 - 03:09 AM

I guess the answer is no, there is not. :)

I've implemented export to png, tif, gif, jpg, psd and xcf, to my plug-in, and think I'll leave it at that for now.
Posted Image
Depending on where you work, site may be not safe for work. :)
0

#3 User is offline   paynekj 

  • Member
  • PipPip
  • Group: Members
  • Posts: 360
  • Joined: 01-June 05
  • LocationUK

Posted 22 December 2011 - 11:28 AM

View Postragtag, on 22 December 2011 - 03:09 AM, said:

I guess the answer is no, there is not. :)

I've implemented export to png, tif, gif, jpg, psd and xcf, to my plug-in, and think I'll leave it at that for now.


Am I correct in thinking that you want to get the default settings for the options for each image-type so that you can pass them to the various file-*-save functions? If so, why don't you use gimp-image-save which automagically selects the correct file-*-save function based on file extension and uses the default (or possibly last used?) settings for each image type.

And you'll probably get quicker answers to script problems over on GimpChat.

Kevin

This post has been edited by paynekj: 22 December 2011 - 11:31 AM

Kevin
0

#4 User is offline   ragtag 

  • Member
  • PipPip
  • Group: Members
  • Posts: 74
  • Joined: 28-December 08

Posted 22 December 2011 - 02:28 PM

It's not quite what I'm trying to do. I'm making a plug-in for managing multiple pages (xcf files) of a book or comic book. For the export function, I want the user to be able to be able to define how things should be exported, such as jpg compression and so on, not just use the default or preset ones. But I'm pretty happy with what I got. I've added png, tif, gif, jpg, psd and xcf, with a GUI for all the different settings, and support for either flattening or exporting with layers when choosing xcf or psd.

Now I just need to change how it handles scaling and cropping, and add a progress bar when loading and exporting...at which point it's more or less complete. The plan is to use it a bit for my next comic as a beta test, so I can tweak things a bit while actually using it. And then publish it. :)
Posted Image
Depending on where you work, site may be not safe for work. :)
0

#5 User is offline   abller 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 02-July 12

Posted 02 July 2012 - 02:46 PM

It's not quite what I'm trying to do.Posted Image
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic