[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] 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] Question about scripting

2006-07-13 Thread Kent Tenney

On 7/12/06, Sven Neumann [EMAIL PROTECTED] wrote:

Hi,

On Wed, 2006-07-12 at 08:43 -0500, Kent Tenney wrote:

 A good start in this direction would be if I could automatically
 save curves and levels files when applying these edits. I could
 then script associating the color transforms with the image.

Feel free to contribute PDB functions

Does that require writing c code or can it be scripted?

(c = screeching halt)

Thanks,
Kent

that allow loading and saving of

curves and levels through the PDB. Sounds like a useful addition.


Sven




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


Re: [Gimp-user] Question about scripting

2006-07-13 Thread Kent Tenney

On 7/12/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

I am not following your use of immutable (it seems to contradict the
statements in parentheses). Perhaps you could clarify that part.


I mean that I do not want to make any changes to the image as
it came from the camera/scanner, as doing so would lose data.

The output image, for example a .jpg, cannot be opened, edited
and saved, as that introduces unnecessary compression degradation.
That's why I call it immutable, to change it I should re-edit the
'master' it came from, edit and compress that file.




Also, I would caution that in GIMP parlance, the term resize
generally refers to changing the canvas size of the image (without
affecting the pixel data in any way). The term scaling is used to
describe actually changing the size of image contents.
Miscommunication could arise if this convention is not recognized.


Thanks for the clarification.



I am not aware of a Procedural DataBase function that permits
automatic saving of curves or levels. There is support (via some GAP
plugins)


I will look for 'GAP' plugins.

for the loading and application of such files. The files

themselves are simple affairs and there should be little difficulty in
writing functions to save them. (Also, the curves and levels can be
saved from their corresponding Layers-Colors... dialog boxes.)


Right, I'd like to automate the process.



I am not familiar with Python-fu but all that you described is easily
handled by Script-fu and there is little reason to doubt that it
cannot be accomplished with Python. The PDB is language agnostic and I
think it is fair to say that Script-fu is the least capable of the
available scripting languages.


I take that to mean that the scripting space has access to
- when an image is edited via levels/curves
- what adjustment values resulted from the edits

If that is true, then it sounds feasible.

Thanks,
Kent




Quoting Kent Tenney [EMAIL PROTECTED]:

 Is it possible to script this capability?
 (automatically saving the curves and levels files, under names
 which indicates which image they are associated with)

 Could it be scripted with Python-fu?
 (I am comfortable with Python, not scheme)

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


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


[Gimp-user] Question about scripting

2006-07-12 Thread Kent Tenney

Howdy,

I am interested in implementing a workflow capability
to Gimp based on the following principles;

- the original file is immutable. (any edits of it lose information)

- the destination file is immutable. (assuming that lossy compression
is used, (usually the case))


This implies that that handling digital images should involve
'recipes' or 'routes' which
describe how to create a destination image from a source.

A destination image is associated with data which
defined the source image, and editing parameters
which resulted in this image.

Now, if when 'resize' the destination image,
I create a new destination image from the source, applying
the same color, cropping, and sharpening transforms,
resampling to a different size.

A good start in this direction would be if I could automatically
save curves and levels files when applying these edits. I could
then script associating the color transforms with the image.

Questions:
Is it possible to script this capability?
(automatically saving the curves and levels files, under names
which indicates which image they are associated with)

Could it be scripted with Python-fu?
(I am comfortable with Python, not scheme)

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


[Gimp-user] Macros, automation

2005-05-23 Thread Kent Tenney
Howdy,

90% of my automation needs would be met
if I could apply a curve file to a batch of images.

Unfortunately I don't have Script-Fu.

Could someone point me to a snippet which
would do this in command line mode?

Thanks,
Kent
___
Gimp-user mailing list
Gimp-user@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user