Re: [Gimp-user] Image transformation batch processing

2015-05-29 Thread Saul Goode

On 28/05/15 19:44, JLuc wrote: 

What is that for a lisp-like code ?

The difficulty that arises when recursing into subdirectories is that Script-fu 
does not provide a means of creating subdirectories (yet[1]). If I were to 
place all of the processed files in the same output directory, identically 
named files in subdirectories would overwrite each other, and I am too lazy to 
devise some renaming scheme that takes such duplicates into account.


[1] https://bugzilla.gnome.org/show_bug.cgi?id=725626
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Image transformation batch processing

2015-05-28 Thread Ofnuts

On 28/05/15 19:44, JLuc wrote:

Le 26/05/2015 23:43, Saul Goode a écrit :
The following code will work on GNU/Linux systems. It will only 
process the filesin the current directory (it will not recurse into 
subdirectories).


What is that for a lisp-like code ?

JL


This is just a  big Scheme script (Gimp's historical scripting language) 
as a here-document in a bash script.



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

Re: [Gimp-user] Image transformation batch processing

2015-05-28 Thread JLuc

Le 26/05/2015 23:43, Saul Goode a écrit :

The following code will work on GNU/Linux systems. It will only process the 
filesin the current directory (it will not recurse into subdirectories).


What is that for a lisp-like code ?

JL



gimp -i -f -b - HERE
   (let ((outdir /tmp/destdir) ; == change this to the destination folder 
(which MUST exist)
 (patterns '(*.gif *.jpg *.png)))
 (when (and (file-exists? outdir) (= (file-type outdir) 2))
   (let loop ((filepaths (foldr  append '() (map (lambda (x) (cadr 
(file-glob x 1))) patterns
 (unless (null? filepaths)
   (let* ((filepath (car filepaths))
  (image (catch #f (car (gimp-file-load RUN-NONINTERACTIVE
filepath
filepath 
  (layer (if image (car (gimp-image-get-active-layer image)) 
#f))
  (filename (string-append outdir
   DIR-SEPARATOR
   (car (last (strbreakup filepath 
DIR-SEPARATOR))
 (unless (null? filepaths)
   (when image
 (let* ((w (car (gimp-image-width image)))
(h (car (gimp-image-height image)))
(aspect (/ h w))
(factor (/ (max w h) 1000)))
   (when ( factor 1)
 (gimp-image-scale image (/ w factor) (/ h factor))
 (set! w (car (gimp-image-width image)))
 (set! h (car (gimp-image-height image
   (if ( w h)
 (gimp-image-resize image (max w h) (max w h) (/ (- h w) 2) 
0)
 (gimp-image-resize image (max w h) (max w h) 0 (/ (- w h) 
2
 (gimp-file-save 1 image (car (gimp-image-flatten image)) 
filename filename)
 (gimp-image-delete image))
   (loop (cdr filepaths)))
 (gimp-quit 0))
HERE

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




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

Re: [Gimp-user] Image transformation batch processing

2015-05-11 Thread Liam R. E. Quin
On Mon, 2015-05-11 at 19:30 -0400, Kristen Sullivan wrote:
 ok so I can't find the link to my thread I made so I'm lost LOL\

Bestto change the subject line at least infuture.

 
 OK so I have uninstalled this program and installed it AGAIN.

Where exactly are you downloading GIMP from?
Which exact version?
Please paste the exact and full URL.

Is this on a GNU/Linux™ system? Or Microsoft Windows? or the Mac? or 
what? Which exact version?

Is it a 32-bit or a 64-bit computer?

How are you running GIMP exactly?

It is difficult even to begin to answer your questions without such 
detail. GIMP does work for a great many people, unless you use one of 
the fake or bad download sites, or download the wrong version for your 
operating system, for example.



  I go and open
 a 800X600 image and still force closes. IDK what is going on with 
 this but
 I dont know what to do either. 

Does GIMP open by itself with no image?

If you send me a copy of the image (or the URL where I can download 
it, if that's an option) I can look at it.

If you are on a Linux or Unix system (including OS X) the terminal 
command
$ file the-image.jpg
(or whatever the file is called) may tell you the image format; if it 
doesn't match the filename's extension, you may need to rename it, or 
tell GIMP the file format in the Open dialogue box.

Liam



 I don't know if it is easier to get help from a GIMP creator but do 
 they come out here? If so please email me at kristen6...@gmail.com   
 I have tried to open the gimp program again and till crashing. I 
 would LOVE to talk to someone that is the creator or someone VERY 
 VERY knowledgeable about gimp. Anyways IDK if this message is
 going to get any of you or be posted on that thread I made but if 
 you could
 send me the link to my thread I'd appreciate that.
 
 Thanks :)
 
 On Mon, May 11, 2015 at 5:17 PM, lloyd_borrett for...@gimpusers.com
  wrote:
 
  Thanks Jay.
  
  --
  lloyd_borrett (via www.gimpusers.com/forums)
  ___
  gimp-user-list mailing list
  List address:gimp-user-list@gnome.org
  List membership: 
   https://mail.gnome.org/mailman/listinfo/gimp-user-listList 
  archives:   https://mail.gnome.org/archives/gimp-user-list
  
 ___
 gimp-user-list mailing list
 List address:gimp-user-list@gnome.org
 List membership: 
  https://mail.gnome.org/mailman/listinfo/gimp-user-listList archives: 
   https://mail.gnome.org/archives/gimp-user-list
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list