Re: [Gimp-user] batch mode in gimp?

2013-08-05 Thread Josef Wolf
On Sa, Aug 03, 2013 at 12:21:54 -0400, Kevin Cozens wrote: > >Granted, it would be nice if GIMP included a more powerful Lisp (such as > >ECL, Embeddable Common Lisp), but Script-Fu's Tinyscheme is surprisingly > >fun to program in. > > There have been discussions where people have said GIMP shoul

Re: [Gimp-user] batch mode in gimp?

2013-08-03 Thread Kevin Cozens
On 13-08-03 08:37 AM, Grue wrote: Script-Fu API is also more consistent than Python's (almost everything is an integer, and all gimp library functions return a list of return values), so Procedure Browser is also a complete documentation of the library. There are a couple of minor points one ha

Re: [Gimp-user] batch mode in gimp?

2013-08-03 Thread Kevin Cozens
On 13-08-03 05:57 AM, Josef Wolf wrote: I know python and I know scheme (and a lot of other languages, if that matters). Granted, I don't know the scheme dialect used by gimp. I'd rather use any lisp dialect in favour of python. I started to learn python, but I broke, since I just can't get used

Re: [Gimp-user] batch mode in gimp?

2013-08-03 Thread Ofnuts
On 08/03/2013 11:57 AM, Josef Wolf wrote: On Fr, Aug 02, 2013 at 08:18:58 +0200, Ofnuts wrote: On 08/02/2013 10:47 AM, Josef Wolf wrote: On Do, Aug 01, 2013 at 09:44:59 +0200, Ofnuts wrote: For such simple processing, you should consider using ImageMagick. Thanks for the pointer, Ofnuts! I a

Re: [Gimp-user] batch mode in gimp?

2013-08-03 Thread Josef Wolf
On Fr, Aug 02, 2013 at 08:18:58 +0200, Ofnuts wrote: > On 08/02/2013 10:47 AM, Josef Wolf wrote: > >On Do, Aug 01, 2013 at 09:44:59 +0200, Ofnuts wrote: > >>For such simple processing, you should consider using ImageMagick. > >Thanks for the pointer, Ofnuts! > > > >I am currently using IM. But my p

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Brendan Scott
On 08/03/2013 04:18 AM, Ofnuts wrote: On 08/02/2013 10:47 AM, Josef Wolf wrote: On Do, Aug 01, 2013 at 09:44:59 +0200, Ofnuts wrote: [] I have a strong feeling that it is time for me to switch to a real, reliable programming language, which script-fu would be (so I hope). At the risk of rai

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Ofnuts
On 08/02/2013 02:22 PM, Paul Cartwright wrote: I would be interested in a script that does resizing.. I do that on most of my images to send in email & add to web pages.. Sometimes I use my Samsung Galaxy camera, other times my Nikon & raw images.. I'm pretty good with shell scripts, if I have a

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Ofnuts
On 08/02/2013 10:47 AM, Josef Wolf wrote: On Do, Aug 01, 2013 at 09:44:59 +0200, Ofnuts wrote: For such simple processing, you should consider using ImageMagick. Thanks for the pointer, Ofnuts! I am currently using IM. But my processing got so complicated, including various levels of quoting t

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Maurizio Loreti
On Fri, Aug 2, 2013 at 2:22 PM, Paul Cartwright wrote: > On 08/02/2013 04:56 AM, Maurizio Loreti wrote: > I would be interested in a script that does resizing.. I do that on most > of my images to send in email & add to web pages.. Sometimes I use my > Samsung Galaxy camera, other times my Nikon &

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Josef Wolf
On Fr, Aug 02, 2013 at 10:56:14 +0200, Maurizio Loreti wrote: > IMHO, the best candidate for these repetitive jobs is ImageMagick - as > suggested before by ofnuts. I agree with this -- as long as your operations are simple. But when your operations get more complex and involve things like like s

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Paul Cartwright
On 08/02/2013 04:56 AM, Maurizio Loreti wrote: > IMHO, the best candidate for these repetitive jobs is ImageMagick - as > suggested before by ofnuts. Or with a shell script invoking "convert" (as > shown in the example) or (if you have some programming experience) with a > simple C program using t

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Maurizio Loreti
IMHO, the best candidate for these repetitive jobs is ImageMagick - as suggested before by ofnuts. Or with a shell script invoking "convert" (as shown in the example) or (if you have some programming experience) with a simple C program using the Magick shared library. In this way i wrote a simple

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Josef Wolf
On Do, Aug 01, 2013 at 09:44:59 +0200, Ofnuts wrote: > For such simple processing, you should consider using ImageMagick. Thanks for the pointer, Ofnuts! I am currently using IM. But my processing got so complicated, including various levels of quoting through muiltiple levels of schell scripts.

Re: [Gimp-user] batch mode in gimp?

2013-08-02 Thread Josef Wolf
On Fr, Aug 02, 2013 at 03:32:55 +1200, Jehan Pagès wrote: > You can do it this way. Tested by myself right now and working well: > > $ gimp-2.9 -i -d -f -s -b "`cat script.scm` (simple-unsharp-mask > \"file.png\" 5.0 0.5 0)" -b '(gimp-quit 0)' > > So basically you could have your small shell scri

Re: [Gimp-user] batch mode in gimp?

2013-08-01 Thread Ofnuts
On 08/01/2013 04:10 PM, Josef Wolf wrote: Hello, I am trying to use gimp in batch mode. Unfortunately, I can't find any examples of how to do _real_ batch processing. All the examples on the net show how to integrate into the gui. I see that I can use the -b flag to invoke script-fu functions.

Re: [Gimp-user] batch mode in gimp?

2013-08-01 Thread Jehan Pagès
Hello, You can do it this way. Tested by myself right now and working well: $ gimp-2.9 -i -d -f -s -b "`cat script.scm` (simple-unsharp-mask \"file.png\" 5.0 0.5 0)" -b '(gimp-quit 0)' So basically you could have your small shell script call-gimp-function with the following code inside: ---