Re: [Gimp-user] Exact crop question
Hi David, Thanks for answering my question so quickly. I realized that I should have phrased my question more carefully. What I want is to be able to autocrop all the images matching a pattern, say movie*.jpg. How do I do that? I tried something below, but that didn't work. =( Thanks! Zac gimp -i -b '(plug_in_autocrop movie0.jpg)' (define (zac-autocrop filename) (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) (drawable (car (gimp-image-get-active-layer image (plug_in_autocrop RUN-NONINTERACTIVE image drawable) (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) (gimp-image-delete image))) On Tue, Apr 22, 2008 at 12:39 PM, David Gowers [EMAIL PROTECTED] wrote: Hi Zac! On Tue, Apr 22, 2008 at 1:45 PM, Zachary Leung [EMAIL PROTECTED] wrote: Hi everyone, I'm wondering if there's an automated way to crop my images of all the white areas on the outside. Basically I've produced quite a few MATLAB plots exported as JPEGs. There's a lot of white around the sides, and the figure is in the center. Is there an automated way to crop exactly the white parts around the figure away? That would save me time from having to zoom in to each picture and do the cropping manually. Autocrop (Image-Autocrop) does this. David -- Blessed is the one who finds wisdom, and the one who gets understanding, for the gain from her is better than gain from silver and her profit better than gold. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Missing filters in GIMP-2.4.5
Hi David, In my installation, scripts/ directory has permissions 755, and its contents have permissions 644. This happens automatically upon installation, so I believe something strange has happened on your system to alter the permissions. I admit I do not try altering the prefix in the way you have, it may be an unaccounted bug. Anyway you can work around it by making sure the scripts/ directory has appropriate permissions, and executing 'chmod +x -R *' inside the scripts/ directory In my installation also, scripts/directory has permissions drwx r-x r-x (755) and files in it have permissions rw- r-- r-- (644). I ran 'chmod +x -R *' inside the scripts/ directory and now all files are rwx r-x r-x But my problem is unchanged. One other possibility is that the script-fu plugin executable does not allow any user to execute it (only root), which can be fixed just as readily I don't understand this. Which script-fu plug-in? Where is it? Thank you for your help, Julien ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Missing filters in GIMP-2.4.5
Hi Julien, On Tue, Apr 22, 2008 at 7:22 PM, julien [EMAIL PROTECTED] wrote: Hi David, In my installation, scripts/ directory has permissions 755, and its contents have permissions 644. This happens automatically upon installation, so I believe something strange has happened on your system to alter the permissions. I admit I do not try altering the prefix in the way you have, it may be an unaccounted bug. Anyway you can work around it by making sure the scripts/ directory has appropriate permissions, and executing 'chmod +x -R *' inside the scripts/ directory In my installation also, scripts/directory has permissions drwx r-x r-x (755) and files in it have permissions rw- r-- r-- (644). I ran 'chmod +x -R *' inside the scripts/ directory and now all files are rwx r-x r-x But my problem is unchanged. One other possibility is that the script-fu plugin executable does not allow any user to execute it (only root), which can be fixed just as readily I don't understand this. Which script-fu plug-in? Where is it? The script-fu plugin that hosts all the scripts and runs them as requested; script-fu is only a plug-in, it is not built into gimp. it's in the system wide gimp plugins directory, which in your case may be /usr/local/gimp-2.4.5/lib/gimp/2.0/plug-ins/ David ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Exact crop question
Zachary Leung wrote: I tried something below, but that didn't work. =( [snip] gimp -i -b '(plug_in_autocrop movie0.jpg)' (define (zac-autocrop filename) (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE filename filename))) (drawable (car (gimp-image-get-active-layer image (plug_in_autocrop RUN-NONINTERACTIVE image drawable) (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) (gimp-image-delete image))) From a quick look at the above, the zac-autocrop function appears to be ok with one minor exception. You don't use _ in the names of functions in Script-Fu. 'plug_in_autocrop' should be 'plug-in-autocrop'. If you wrote zac-autocrop to load, crop, and re-save your files, why does your GIMP command line shown above call plug-in-autocrop instead of zac-autocrop? -- 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 disclaimer/favourite | -Pinkutus the Borg ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Missing filters in GIMP-2.4.5
Hi, So, are the following files: /usr/local/gimp-2.4.5/share/gimp/2.0/scripts/script-fu-compat.init /usr/local/gimp-2.4.5/share/gimp/2.0/scripts/script-fu.init readable by everyone? If not, they should be. As all files in /usr/local/gimp-2.4.5/share/gimp/2.0/scripts/ , these two files are now rwx r-x r-x I tried after putting them julien-users instead of root-root : problem unchanged. I add, if this could be a clue, that #umask gives 0022. Julien ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Exact crop question
Thanks guys, I've figured out what to do from your pointers! Didn't realize there's a difference between _ and -. Zac ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Text
Can I change the size of a text while tipying it? Eg: Here a small text 12pt, and here a big one 86pt, in the same text-layer Or change the style of the font. Eg: Here is bold, and here italic, here is normal, in the same text-layer Or the color. Eg: Red, White, Blue, Black, Gray, Purple, again, in the same text-layer Thanks ^^ -- Check my gallery! http://lap1994.deviantart.com ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Exact crop question
Quoting David Gowers [EMAIL PROTECTED]: You defined zac-autocrop correctly, but you haven't registered it with GIMP. See this link for an example. If you are calling a Script-fu defined function from the command line, it is not required that the function be registered with the PDB. The definition will be loaded when Script-fu is initialized and the function made available within Script-fu. PDB registration is only necessary if you wish the defined function to be made available to plug-ins or scripts in other languages. ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Text
Can I change the size of a text while tipying it? Eg: Here a small text 12pt, and here a big one 86pt, in the same text-layer Or change the style of the font. Eg: Here is bold, and here italic, here is normal, in the same text-layer Or the color. Eg: Red, White, Blue, Black, Gray, Purple, again, in the same text-layer No, as far as I know. Use different layers for different style fonts/sizes/colours Owen ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
[Gimp-user] Feathering edges of an existing selection
I doubt that this can be done, but I thought I would ask in case I'm missing some trick. Ofter I make a complicated selection with edge feathering turned off. However, after I'm finished making the selection I decide that I would like to feather the edges before performing other tasks. You cannot do this directly using the Feather edges check box on the selection tool property menu. Is there another way to accomplish this? Thanks. Regards, -- Jeffery Small ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user
Re: [Gimp-user] Feathering edges of an existing selection
Hi Jeffery, On Wed, Apr 23, 2008 at 1:35 PM, Jeffery Small [EMAIL PROTECTED] wrote: I doubt that this can be done, but I thought I would ask in case I'm missing some trick. Ofter I make a complicated selection with edge feathering turned off. However, after I'm finished making the selection I decide that I would like to feather the edges before performing other tasks. You cannot do this directly using the Feather edges check box on the selection tool property menu. Is there another way to accomplish this? Thanks. Select-Feather ? LOL! David ___ Gimp-user mailing list Gimp-user@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user