Using Smart Sharpen in batch mode? |
|
Jun 26, 2011, 15:02
Post: #1
|
|||
|
|||
|
Hi
I use a lot the very useful smart sharpen plug-in for my pictures. However in order to use it I have to manually open an image and go to Filter→Enhance →Sharpen (Smart Redux) and this take quite some time to do for every image. I was thus wondering if it was possible to use it in batch mode. I am not familiar with this mode but I read the tutorial about it on the gimp website and came up with the following script: Code: (define (smartsharpen filenameWhich I then executed in a terminal like this: Code: gimp-2.7 -i -b '(smartsharpen "*.jpg" 2.00 1.00 0.00 TRUE 5.00 1.00 0.00 0.50 0.01 6.00 6.00 TRUE)' -b '(gimp-quit 0)'And I also tried to use the smartsharpen script directly like that: Code: gimp-2.7 -i -b '(-Eg-SmartSharpen "*.jpg" 2.00 1.00 0.00 TRUE 5.00 1.00 0.00 0.50 0.01 6.00 6.00 TRUE)' -b '(gimp-quit 0)'But every time I get the following error and the pictures aren't processed... Code: This is a development version of GIMP. Debug messages may appear here.I am using gimp 2.7 on Ubuntu 11.04 with gimp-plugin-registry which contains the smart redux sharpen and refocus scripts. So what am I doing wrong here? Thanks for your answers! |
|||
|
Jun 26, 2011, 16:02
Post: #2
|
|||
|
|||
|
RE: Using Smart Sharpen in batch mode?
Obviously something is trying to display something, and since there is no display...
I don't see anything obvious in your code that requires the availability of a display. It could be the filter trying to show a dialog despite the RUN-NONINTERACTIVE. Start Gimp without the "-i" to enable the display... ![]() |
|||
|
Jun 26, 2011, 18:16
Post: #3
|
|||
|
|||
RE: Using Smart Sharpen in batch mode?
(Jun 26, 2011 16:02)ofnuts Wrote: Obviously something is trying to display something, and since there is no display... Thanks for the answer. Indeed the -i option seems responisble for the Seg Fault. However I have an new problem... I had some trouble with the batch process of multiple files so I to limit the numbers of problem I just changed my script to work on a single file and I will include everything in a bach script to have the multiple files. Anyway, with the following script: Code: (define (batch-smartsharpen filenameand the following command: Code: gimp -b '(batch-smartsharpen "IMG_0065.jpg" 2.00 1.00 0.00 TRUE 5.00 1.00 0.00 0.50 0.01 6.00 6.00 TRUE)' -b '(gimp-quit 0)'I get the following error (both in a pop-up and in the terminal): Code: batch command experienced an execution error:And I don't know what to do. This seems to be a problem in script-fu-Eg-SmartSharpen. I gave a quick look to the script and it uses gimp-image-convert-rgb but with a if condition especially to check that the layer is not rgb... The picture file is a standard jpeg (.jpg) picture taken directly from my canon 40D. I can open it without problem in Gimp or any other program... A .xcf version of the picture gives me the same error... The script-fu-Eg-SmartSharpen works fine when used manually (and with the GUI) in Gimp so I am guessing I have to add something in my own script, but what? |
|||
|
Jun 26, 2011, 20:20
Post: #4
|
|||
|
|||
|
RE: Using Smart Sharpen in batch mode?
I would first check that your "drawable" actually contains what you think it does.
Also nothing prevents you from taking the original script and adding whatever is needed to make it suit your particular needs (that's one of the benefits of GPL licensing). Doing so will likely give you a better understanding of how it works... ![]() |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Batch process with blur on single layer in image | uzzors2k | 6 | 272 |
Dec 14, 2012 13:52 Last Post: uzzors2k |
|
| Batch process - adding a text layer. | eppc | 4 | 508 |
Nov 13, 2012 12:43 Last Post: eppc |
|
| watermark-batch | adrien | 5 | 416 |
Oct 28, 2012 17:54 Last Post: rich2005 |
|
| replace color in images, batch way | frazz | 2 | 1,021 |
Sep 19, 2012 18:15 Last Post: rich2005 |
|
| Anaglyph Batch Processing | vertigoChuck | 8 | 665 |
Jun 28, 2012 14:34 Last Post: vertigoChuck |
|

Search
Member List
Help
GIMP Tutorials




![[Image: 2Tvo0.png]](http://i.imgur.com/2Tvo0.png)
