Re: [Gimp-user] Automatically save curves file

2008-04-04 Thread Kent Tenney
On Fri, Apr 4, 2008 at 6:12 PM, David Gowers <[EMAIL PROTECTED]> wrote:
> Hi Kent,
>
>
>
>  On Sat, Apr 5, 2008 at 4:36 AM, Kent Tenney <[EMAIL PROTECTED]> wrote:
>  > Howdy,
>  >
>  >  I really want Gimp to automatically save the curves file
>  >  when I adjust color on an image.
>  >
>  >  Can this be done with Python?
>  No,  Plug-ins don't get access to tool dialogs. The best you could do
>  currently is to save the curves to a predefined filename, for example
>  'last', and then run a plugin which renames 'last' to match the
>  current image filename. That kind of plugin could be implemented with
>  Python.

How about some kind of pyGnome script which clicked the 'Save' button,
entered a file name and saved it?

Maybe started by a hotkey, if it couldn't hook into the 'OK' button on
the dialog.

I don't need elegant, I just want to be able to chug through a bunch of
color tweaks and be able to duplicate them later, without adding steps to
the editing.

Thanks,
Kent

>
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] Automatically save curves file

2008-04-04 Thread David Gowers
Hi Kent,

On Sat, Apr 5, 2008 at 4:36 AM, Kent Tenney <[EMAIL PROTECTED]> wrote:
> Howdy,
>
>  I really want Gimp to automatically save the curves file
>  when I adjust color on an image.
>
>  Can this be done with Python?
No,  Plug-ins don't get access to tool dialogs. The best you could do
currently is to save the curves to a predefined filename, for example
'last', and then run a plugin which renames 'last' to match the
current image filename. That kind of plugin could be implemented with
Python.
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] whats the best way to learn script-fu

2008-04-04 Thread Kevin Cozens
rob wrote:
> Whats the best way to learn script-fu?
[snip]
> if anyone can recomend something specific
> that they thought was the best way to get started with batch image 
> processing with gimp.

You should become familiar with the Scheme language. To do that, get a copy of 
the R5RS (http://www.schemers.org/Documents/Standards/R5RS/r5rs.pdf) and read 
it. Just be aware that not everything mentioned in the R5RS is implemented in 
the Scheme interpreter of Script-Fu. Items like define-syntax, or bignums are 
examples of items not currently supported. Also, look at the scripts which are 
shipped with GIMP.

I think one of the problems people have when learning Scheme is that a lot of 
scripts are shown with many closing ) symbols at the end of a line. While you 
are getting comfortable with Scheme I would suggest you don't skimp on the 
whitespace. Put the closing parentheses on separate lines. If may violate some 
Scheme based coding style guides but makes it much easier to see the syntax of 
the language.

There are tutorials on the GIMP web site at http://www.gimp.org/tutorials/ 
under "Script Authoring". I also have some notes about Script-Fu in the wiki 
section of my web site at 
http://www.ve3syb.ca/wiki/doku.php?id=software:sf:start

Be careful of any Script-Fu tutorial which was written before the release of 
the 2.4 version of GIMP. It may contain information that is out-of-date or 
even wrong as GIMP has moved to a different Scheme interpreter.

-- 
Cheers!

Kevin.

http://www.ve3syb.ca/   |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172  |"Same thing we always do, Pinkutus:
 |  Try to assimilate the world!"
#include  |  -Pinkutus & the Borg

___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


[Gimp-user] Automatically save curves file

2008-04-04 Thread Kent Tenney
Howdy,

I really want Gimp to automatically save the curves file
when I adjust color on an image.

Can this be done with Python?

Thanks,
Kent
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] OT: Stubborn PSD file

2008-04-04 Thread Tobias Jakobs
On Thu, Apr 3, 2008 at 8:04 PM, Chris Mohler <[EMAIL PROTECTED]> wrote:
> Hi list,
>
>  I have a 14 Mb PSD file that I can't seem to open in GIMP or
>  imagemagick. ...
>
>  So, anyone out there have an idea of what to try next?  ...

Please file a bugreport here:
http://bugzilla.gnome.org/simple-bug-guide.cgi?product=GIMP

Regards,
Tobias
___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user


Re: [Gimp-user] OT: Stubborn PSD file

2008-04-04 Thread Sven Neumann
Hi,

On Thu, 2008-04-03 at 13:04 -0500, Chris Mohler wrote:
> Hi list,
> 
> I have a 14 Mb PSD file that I can't seem to open in GIMP or
> imagemagick.  In GIMP, the progress bar does to 100% and then stays
> there for a long time - until I cancel. The 'convert' and 'identify'
> commands do not complete either, and adding -verbose doesn't print
> anything to the terminal.
> 
> So, anyone out there have an idea of what to try next?  This image is
> supposedly a template for a trade show booth and can be downloaded
> here:
> http://206.188.197.107/graphics/E120.zip

Opening this image in GIMP 2.5 (the version from SVN trunk) gives the
error message: "Unsupported color mode: CMYK". So it looks like there's
not much hope unless someone interested picks up the PSD file format
spec and adds CMYK->RGB conversion to the PSD load plug-in.


Sven


___
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user