[Gimp-user] Script-Fu command line parsing help needed
say i want to pass a tick mark in a string, how would i escape this to make gimp happy? /usr/bin/gimp -i -d -c -b '(script-fu-bla-bla "Let's Go!")' '(gimp-quit 0)' or is this a shell problem and not a gimp problem? thanks Ryan -- .-.--.-. \ Ryan Schuermannn \ www.hire.com \ Web Programmer-Modeler \ \ 512-583-4734.wrk \ [EMAIL PROTECTED]\ Visualize Whirrled Peas \ \ 832-722-7961.cel \ [EMAIL PROTECTED] \ http://www.nol.net/~rts \ ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] Batch mode help
First off, thanks all for the insight and help, I finally have my script running and saving my images perfectly. However I'm having a bit of a problem running it from Batch mode under redhat 6.2 Linux (Gimp 1.2.1) I have already teied following Adrians tutorial but its either wrong or outdated, or I just don't comprehend. I know batch mode works because, gimp -b '(gimp-quit 1 0)' will load and then quit gimp just fine. So im my script i changed the define and register to underscores in the name, I made sure not to pass color arrays, and all text variables are defined as string or font so that no need to escape quotes on the command line. I have attached my script, can anyone get this working in batch mode? This is the command i tried gimp -i -b '(script-fu-hire-buttons 1 "Test" 6 "-*-arial-bold-r-*-*-14-*-*-*-p-*-*-*" 14 255 255 255 255 255 255 0 0 0)' '(gimp-quit 1 0)' which I get: batch command: experienced an execution error. so i tried it in the Console and it makes the image funny, all layers are black on black and half the size they should be but at least it does run without errors. any suggestions or can anyone get this working in batch mode? thanks Ryan hirebatch.scm
Re: [Gimp-user] Script-fu help, problems using gimp-file-save
worked great, thanks! Ryan Jeff Trefftzs wrote: > (set! layer-save (gimp-image-merge-visible-layers img > EXPAND-AS-NECESSARY)) > (gimp-convert-indexed img 0 2 0 0 0 "") > (gimp-file-save 1 img layer-save "test.gif" "test.gif") > > Have you tried > (gimp-file-save 1 img (car layer-save) "test.gif" "test.gif") > > The gimp functions all return a list, not just a value, so maybe > that's your problem. layer-save is actually a list, not a > drawable identifier. > > HTH, > -- > --Jeff > Jeff Trefftzs <[EMAIL PROTECTED]> > http://www.tcsn.net/trefftzsHome Page > http://gug.sunsite.dk/gallery.php?artist=68 Gimp Gallery > http://members4.clubphoto.com/jeff309574A photo gallery > > ___ > Gimp-user mailing list > [EMAIL PROTECTED] > http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user -- .-.--.-. \ Ryan Schuermannn \ www.hire.com \ Web Programmer-Modeler \ \ 512-583-4734.wrk \ [EMAIL PROTECTED]\ Visualize Whirrled Peas \ \ 832-722-7961.cel \ [EMAIL PROTECTED] \ http://www.nol.net/~rts \ ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] Script-fu help, problems using gimp-file-save
I wrote a script and it displays fine, and i can go to file->save and save as a gif directly (so it's indexing correctly) and its only 1 layer, but I get an ERROR: Invalid types specified for arguments when i try to use gimp-file-save heres the jist of it (img (car (gimp-image-new 256 256 RGB))) ... (gimp-selection-none img) (gimp-image-clean-all img) (set! layer-save (gimp-image-merge-visible-layers img EXPAND-AS-NECESSARY)) (gimp-convert-indexed img 0 2 0 0 0 "") (gimp-file-save 1 img layer-save "test.gif" "test.gif") ;(gimp-display-new img) am I missing a step in order to save gif files? I get it to display perfectly and save thru the menu, it just doest like to script-fu save. I'm trying to follow Adrian Likins's instructions that are very good, it's just not working for me. thanks Ryan ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] Is there a way to control anti-aliasing degree?
in script-fu is there a way to set or control the degree that Gimp anti-aliases text? In photoshop there are varying degrees of alias-ness and all i see in making a text layer is either true or false for aliasing. I have a set of buttons im trying to recreate and Gimp anti-aliases the text a slight bit more than the orig image. It's not that noticable of a difference but ya know how some anal people can be so I was hoping to be able to use Gimp to exactly match the degree of alias-ness. thanks Ryan -- .-.--.-. \ Ryan Schuermannn \ www.hire.com \ Web Programmer-Modeler \ \ 512-583-4734.wrk \ [EMAIL PROTECTED]\ Visualize Whirrled Peas \ \ 832-722-7961.cel \ [EMAIL PROTECTED] \ http://www.nol.net/~rts \ ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] Script-Fu help?
ok, ive read most all the docs i can find, i have a simple problem, hoping someone can enlighten me with the proper gimp command. I'm creating an image, i need the background to stay transparent, ive created a text later and a layer with a rectangle, and a layer for 2 circles, however when i create the 2 circles it doesn't take a layer parameter but seems to draw it to the image ,then by calling gimp-edit-fill i get the circles to appear solid..however i am getting a lot of garbage around the circles. here are the commands related to the circe layer, what should i call before or after or during to clean out this layer back to pure transparent? (let* ( ... (circle-layer (car (gimp-layer-new img img-width img-height RGBA_IMAGE "circle-layer" 100 NORMAL))) ) ... (gimp-image-add-layer img circle-layer 1) ... (gimp-layer-set-offsets circle-layer 0 0) ... (gimp-ellipse-select img 0 0 img-height img-height REPLACE TRUE FALSE 0) (gimp-ellipse-select img (- img-width img-height) 0 img-height img-height ADD TRUE FALSE 0) (gimp-edit-fill circle-layer BG-IMAGE-FILL) ... (gimp-display-new img) thanks Ryan ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
[Gimp-user] Help with batch mode plase
I've searched high and low on the web and mailing list archives and can't seem to find detailed information on the batch mode. I have written a script-fu proggy to create an image, now I would like the ability to run this script from the command line and pass it some variables. Is this possible via the batch mode? are there any examples of usage out on the web or could someone please provide me with the proper syntax? ie is this right? gimp -i -d -b myscript.scm var1 var2 var3 the script creates a simple image with no brushes, gradients etc, and i'm hoping to eventually make it save to a gif instead of its current state of utilizing gimp-display-new. So am I on the right track, or what's the proper way to automate the creation of an image from command line? thanks in advance Ryan -- .-.--.---.--. ||::...\-Ryan Schuermannn-\-www.hire.com--\-Web Programmer-Modeler---\ ||:::...\-512-583-4734.wrk-\[EMAIL PROTECTED]\-"Paging and swapping prevent-\ |||:::...\-832-722-7961.cel-\[EMAIL PROTECTED]\--the system from crashing"---\ `-^--^---^-' ___ Gimp-user mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user