Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-20 Thread Chris Mohler
On Mon, Aug 20, 2012 at 6:23 AM, maderios mader...@gmail.com wrote:

 Hi
 Explanation: this plugin simplifies the life of people who use Gimp as a
 working tool.
 Best regards.

Please.  I'm almost certain it was written to stop all the whining.

I Save As every hour or so and bump the version, but still - there's
nothing quite as awful as accidentally discarding all of your layers,
masks, paths, channels, etc. from your working tool.

Chris
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-19 Thread Akkana Peck
maderios writes:
 The Akkana script
 https://github.com/akkana/gimp-plugins/blob/master/save-export-clean.py
 works well now.

For those who haven't used sites like Github before: be sure to
click on Raw before saving the plug-in to your plug-ins directory.

minhsien0330 writes:
 After testing it I found this plug-in will not export the background layer
 to save.

Interesting! Thanks for the clear steps -- I see the same thing you do.

I had wondered why the PDB call gimp-file-save required a drawable
(layer) argument. It looks like, when exporting to formats like jpeg
which can't handle multiple layers, gimp-file-save uses that
argument to decide which layer to save. That also explains why,
in GIMP 2.6 and earlier, we had to go through that extra step of
flattening the image if it had multiple layers before it could be
saved to jpeg.

To get around that, the plug-in would probably have to have some
of extra logic:

if (the image has multiple layers)
look up target file type to see if the format supports that
if not supported:
save context for undo, or make a duplicate image
flatten the image
save it
undo the flatten or delete the duplicate image

I don't know of a way using the GIMP pdb to look up whether a
particular file format needs flattening. So the plug-in might have
to maintain its own table of formats.

I had been thinking about this plug-in as something for people who
edit a png or jpg or whatever, make a simple change and re-save it.
I figured that when someone starts adding extra layers, they'd
actually prefer the save as xcf, export a copy to jpg model ...
at least, that's my own workflow. Do you think there are a lot of
people who use multiple layers yet save as jpg?

 Besides, how do I setup the exported  jpg quality? The defualt jpeg output
 quality of Save/Export Clean seems very low.

That's a good question, and might require more research. At first I
assumed it was following my default settings for the jpeg plug-in.
If you export to JPG and get the dialog, you can click on Save
Settings after adjusting the Quality slider. But GIMP doesn't
actually seem to save those settings -- I find that whatever I
adjust them to, my jpg quality settings end up at 90, whether I
actually set the default higher or lower than that.

That might be a bug -- if so, we should probably move to the
gimp-developer list to find out (CCing). I'll do more testing
before filing one, but it seems odd that quality keeps ending
up at 90 and I don't seem to be able to change it.

...Akkana
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-19 Thread Akkana Peck
 minhsien0330 writes:
  Besides, how do I setup the exported  jpg quality? The defualt jpeg output
  quality of Save/Export Clean seems very low.

Akkana Peck writes:
 I find that whatever I
 adjust them to, my jpg quality settings end up at 90, whether I
 actually set the default higher or lower than that.

Turns out that's a known bug that has already been fixed in the GIMP
2.8 tree.

...Akkana
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-19 Thread Chris Mohler
On Sun, Aug 19, 2012 at 2:10 PM, Akkana Peck akk...@shallowsky.com wrote:
 wouldn't it be more simple to flatten everything rather than ...  ?

 It wouldn't make you very happy after you saved an XCF and tried to
 reopen it ... some formats DO support layers. :-)

How about:

 - Duplicate image
 - Flatten duplicate
 - Save
 - Destroy duplicate

Chris
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-19 Thread Akkana Peck
Chris Mohler writes:
 On Sun, Aug 19, 2012 at 2:10 PM, Akkana Peck akk...@shallowsky.com wrote:
  wouldn't it be more simple to flatten everything rather than ...  ?
 
  It wouldn't make you very happy after you saved an XCF and tried to
  reopen it ... some formats DO support layers. :-)
 
 How about:
 
  - Duplicate image
  - Flatten duplicate
  - Save
  - Destroy duplicate

That was exactly one of the two options I just described. and
if you're saving to XCF, you'll end up with a flattened XCF
that's lost all the layer info.

Sure, it's fine if you only use the plug-in for exporting to JPG,
and use Save for XCF. But then you probably wouldn't want to bind
it to Ctrl-S.

...Akkana
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-18 Thread maderios

On 08/17/2012 09:55 PM, Partha Bagchi wrote:


Maderios

See if this script helps you. An old script written by Rob Antonishen:

http://ffaat.pointclark.net/incoming/scripts/save_and_export.scm

Hi
The Akkana script
https://github.com/akkana/gimp-plugins/blob/master/save-export-clean.py
works well now.

Greetings


--
Maderios
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-17 Thread maderios

On 08/17/2012 09:24 PM, Akkana Peck wrote:

maderios writes:

Hi
Thanks for this post. This plug-in doesn't work for me (Debian Wheezy)
I put it in /usr/lib/gimp/2.0/plug-ins/
chmod 755


What is it doing, or not doing? Doesn't work doesn't give me much
to go on to figure out what needs fixing.

...Akkana


Hi
It means I can't see any change in the menu. I can't see any change 
concerning save and save as.

Greetings

--
Maderios
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-15 Thread maderios

Hi
Thanks for this post. This plug-in doesn't work for me (Debian Wheezy)
I put it in /usr/lib/gimp/2.0/plug-ins/
chmod 755

Regards
Maderios

On 08/11/2012 10:39 PM, Akkana Peck wrote:

Yet another thread about Save vs. Export this morning.
I guess it's time to post this.

Early on in the discussions, I posted something saying, basically,
   I don't like the new model either, but I'm going to work with it for
   a while and see if I continue to feel that way. But if I do, it's
   easy enough to write a plug-in that does what you want Save to
   do, perhaps involving gimp-file-save, and bind it to Ctrl-S.

Well, actually I've found it surprisingly easy to adapt to using
ctrl-E instead of ctrl-S. It's only a minor irritation that I have to
ignore the you have unsaved images when I quit (and that I can
no longer use it to tell me whether I *really* have unsaved images).

But obviously a lot of people on the mailing lists are having a lot
more trouble adapting. So yesterday I looked into the plug-in idea.
And found out it was trivial. Aside from registering the plug-in,
all you really need are two lines of Python:

 pdb.gimp_file_save(img, drawable, img.filename, img.filename)
 pdb.gimp_image_clean_all(img)

The first line saves the image back to its current filename.
(The gimp-file-save PDB call still handles all types, not just XCF.)
The second line marks the image as clean, so you don't see an
unsaved image warning when you quit. Since these are both
PDB calls, you could also do them in Script-Fu.

Of course, I couldn't just stop there -- I wanted it to handle
images that didn't have filenames yet. For those, I couldn't use the
standard GIMP save-as dialog, because as far as I can tell, there's
no way to call that dialog from a plug-in. So it uses the standard
GTK save-as dialog, and it starts in whatever directory is most
prevalent in your currently open images. The dialog part isn't
doable in Script-Fu, I don't think (which is why I used Python).

Anyway, the Python plug-in is available here:
https://github.com/akkana/gimp-plugins/blob/master/save-export-clean.py
It shows up as File-Save/Export clean.
Lousy name.  Feel free to suggest a better one.

Use at your own risk. I haven't tested it much. It WILL OVERWRITE
the image file, without any warnings or confirmation dialogs.
If you decide you like it, you can bind it to Ctrl-S.  Or whatever.

Now can we move on and talk about gegl graphs and improving
the brush UI? :-)

Alexandre Prokoudine writes (in response to the latest save-export thread):

By the way, what does it take to make you less sour a more
broad-minded and positive thinking? Would a mug of cocoa and a bun do
the trick, perhaps?


That sounds lovely, Alexandre. I think I'll go make some.

...Akkana
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


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


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-12 Thread R Kimber
On Sat, 11 Aug 2012 13:39:52 -0700
Akkana Peck wrote:

 Now can we move on and talk about gegl graphs and improving
 the brush UI? :-)

Or even making widely used plugins like 8bf work in Gimp

- Richard.
-- 
Richard Kimber
Political Science Resources
http://www.PoliticsResources.net/
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-12 Thread Partha Bagchi
On Sun, Aug 12, 2012 at 12:07 PM, Alexandre Prokoudine
alexandre.prokoud...@gmail.com wrote:
 On Sun, Aug 12, 2012 at 7:20 PM, R Kimber wrote:

 Or even making widely used plugins like 8bf work in Gimp

 Are you by any chance referring to the PSPI plug-in?

 Alexandre Prokoudine
 http://libregraphicsworld.org
 ___
 gimp-user-list mailing list
 gimp-user-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/gimp-user-list

Alexandre,

All Photoshop plugins filters have the extension 8bf?
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


Re: [Gimp-user] A plug-in for those who still don't like the new Save/Export

2012-08-12 Thread Partha Bagchi
On Sun, Aug 12, 2012 at 12:41 PM, Alexandre Prokoudine
alexandre.prokoud...@gmail.com wrote:
 On Sun, Aug 12, 2012 at 8:30 PM, Partha Bagchi wrote:

 Alexandre,

 All Photoshop plugins filters have the extension 8bf?

 Nope. There's also 8bi and others. See the beginning of
 http://www.fileinfo.com/filetypes/plugin.

 8bf is the only supported format because it's the only one Tor had
 documentation for. Adobe published some specs for its file formats
 since then, but nothing on filters as far as I can tell.

 Alexandre Prokoudine
 http://libregraphicsworld.org
 ___
 gimp-user-list mailing list
 gimp-user-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/gimp-user-list

OK, but Wiki says that 8bf are Photoshop plug-in filters. See
http://en.wikipedia.org/wiki/8bf#Plugin_types :)

Anyway, not relevant to the overall discussion about Akkana's plugin.
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list