[Gimp-user] Gimp Java Batch not working
Hi there, I am new to Gimp and first I want to thank the Gimp community for such a great application. But here is my problem. I try to process images from within a Java application. When I run the assembled batch command the gimp console writes that the execution was successfull. But actually nothing happens. Here is my Java code: The resulting command line is: C:\Program Files\GIMP 2\bin\gimp-2.8.exe -i -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE z:\test\26cf5abe-eaa1-4ddd-af04-3d9e59804ed2.png z:\test\26cf5abe-eaa1-4ddd-af04-3d9e59804ed2.png)))(drawable (car (gimp-image-get-active-layer image(plug-in-sobel RUN-NONINTERACTIVE image drawable 1 1 1)(gimp-file-save RUN-NONINTERACTIVE image drawable z:\test\test.png z:\test\test.png)(gimp-image-delete image))' -b '(gimp-quit 0)' Executing this directly from command line does not fix the problem. Anyone a clue what I make wrong? Thank you in advance... Kind regards, Andreas ___ 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] Gimp Java Batch not working
... the Java code :) : File imageFile = new File(this.targetDir.getPath() + File.separator + UUID.randomUUID().toString() + .png); File testFile = new File(this.targetDir.getPath() + File.separator + test.png); Tools.compressJpegFile(imageFile, inImage, 1.0f); String argString = String.format((let* ((image (car (gimp-file-load RUN-NONINTERACTIVE \%s\ \%s\))) + (drawable (car (gimp-image-get-active-layer image + (plug-in-sobel RUN-NONINTERACTIVE image drawable 1 1 1) + (gimp-file-save RUN-NONINTERACTIVE image drawable \%s\ \%s\) + (gimp-image-delete image)), imageFile.getPath(), imageFile.getPath(), testFile.getPath(), testFile.getPath()); String script = String.format(\C:\\Program Files\\GIMP 2\\bin\\gimp-2.8.exe\ -i -b '%s' -b '(gimp-quit 0)', argString); ProcessBuilder builder = new ProcessBuilder(script); builder.directory(this.targetDir); builder.redirectErrorStream(true); if (!this.isCancelled()) { Process process = builder.start(); InputStream is = process.getInputStream(); InputStreamReader isr = new InputStreamReader(is); BufferedReader br = new BufferedReader(isr); String line; while ((line = br.readLine()) != null) { System.out.println(line); } System.out.println(Program terminated!); process.waitFor(); } Kind regards, Andreas Am 07.03.2014 10:52, schrieb Andreas Truszkowski: Hi there, I am new to Gimp and first I want to thank the Gimp community for such a great application. But here is my problem. I try to process images from within a Java application. When I run the assembled batch command the gimp console writes that the execution was successfull. But actually nothing happens. Here is my Java code: The resulting command line is: C:\Program Files\GIMP 2\bin\gimp-2.8.exe -i -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE z:\test\26cf5abe-eaa1-4ddd-af04-3d9e59804ed2.png z:\test\26cf5abe-eaa1-4ddd-af04-3d9e59804ed2.png)))(drawable (car (gimp-image-get-active-layer image(plug-in-sobel RUN-NONINTERACTIVE image drawable 1 1 1)(gimp-file-save RUN-NONINTERACTIVE image drawable z:\test\test.png z:\test\test.png)(gimp-image-delete image))' -b '(gimp-quit 0)' Executing this directly from command line does not fix the problem. Anyone a clue what I make wrong? Thank you in advance... Kind regards, Andreas ___ 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] Toolbox problem
Hello Gunold, Thank you for the link but I'm afraid my German is not terribly good. I've lived in Canada all my life, not Germany; my mother describes my German with the word Deutschverderber ;-) I think I got the essence of the video though so I'll try to figure out the rest by imitating what I saw there. Nochmal, vielen Dank! (Again, many thanks.) -- Reinhardt On 2014-03-04 1:59 AM, Gunold Brunbauer wrote: Hello Reinhardt, because I think that you can understand german language I would like to recommend you this link: http://www.xn--gimp-fr-kinder-lsb.de/test3/index.php/component/content/article/78-buch/111-so-macht-man-gimp-anfaenger-sicher You will find a video to show you how you can make the GIMP GUI good for beginners. HTH, Gunold Am 04.03.2014 04:01, schrieb Chris Mohler: On Mon, Mar 3, 2014 at 6:05 PM, Reinhardt Christiansen rhino...@yahoo.ca wrote: How do I get back to where I'm getting the toolbox automatically upon opening GIMP and the supporting dialogs also appear when you click on the relevant tool? 1 - the Tab key will toggle visibility of your toolbox and the dockable dialogs. 2 - look under Windows-Dockable Dialogs. You will find the tool options, brushes etc. there. Depending on how long ago you closed them, you may find them under Windows-Recently Closed Docks. 3 - you might want to try Single Window Mode. This is also under the main 'Windows' menu. This makes all the tools and dockables into one solid window, instead of all the little floating windows. HTH, Chris ___ 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 -- Reinhardt ___ 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] Beginner question, rotating photo cube
Good day, I`m a new user and require some guidance to create a rotating photo cube using map object. I am working with windows 7, and have Gimp 2.8 and GAP 2.6 installed. I have verified some tutorials and saw a Youtube project with a rotating photo cube. I have followed the example but my finished project does not spin in a smooth fashion. It appears to turn sporadically. Could anyone point me in the right direction? The object is to apply this information to other animated functions. Thanks very much Bob ___ 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] Lighten / Darken tool is where?
I've found most of the tools I want (color balance / lasso, etc.) but I can't find the tool to lighten / darken images, selections, or layers. Where can I find such a tool? Is it in a drop-down? what is it called? is it a toolbox icon? Thanks! -- pfaoro (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-list List archives: https://mail.gnome.org/archives/gimp-user-list
Re: [Gimp-user] Lighten / Darken tool is where?
Under the Colors menu there are many different options for adjusting these parameters (Color Balance, Hue-Saturation, Colorize, Brightness-Contrast, Threshold, Levels, Curves, etc.) Note that these will be applied to the currently selected layer. On Fri, Mar 7, 2014 at 10:19 AM, pfaoro for...@gimpusers.com wrote: I've found most of the tools I want (color balance / lasso, etc.) but I can't find the tool to lighten / darken images, selections, or layers. Where can I find such a tool? Is it in a drop-down? what is it called? is it a toolbox icon? Thanks! -- pfaoro (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-list List archives: https://mail.gnome.org/archives/gimp-user-list -- pat david http://blog.patdavid.net ___ 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] Lighten / Darken tool is where?
On 7.3.2014 at 5:19 PM pfaoro wrote: I've found most of the tools I want (color balance / lasso, etc.) but I can't find the tool to lighten / darken images, selections, or layers. Where can I find such a tool? Is it in a drop-down? what is it called? is it a toolbox icon? We have three tools for this: - for the easy way: the Brightness/Contrast Tool, - for the intermediate way: the Levels Tool, - for the expert way: the Curves Tool. You find them in the toolbox, in the Colors menu or in the Tools/Color Tools menu. Kind regards, Sven ___ 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] Gimp Java Batch not working
On 14-03-07 04:52 AM, Andreas Truszkowski wrote: But here is my problem. I try to process images from within a Java application. When I run the assembled batch command the gimp console writes that the execution was successfull. But actually nothing happens. Here is my Java code: [snip] Executing this directly from command line does not fix the problem. Anyone a clue what I make wrong? The Scheme code looks correct, AFAICT. If in doubt, paste the code in to the Script-Fu console and see if it works as expected or if it spits out error messages. If you run that code from a Windows command line you have to be aware of whether the \ characters are being seen as \ or if they are being used to escape the following character. -- Cheers! Kevin. http://www.ve3syb.ca/ |Nerds make the shiny things that distract Owner of Elecraft K2 #2172 | the mouth-breathers, and that's why we're | powerful! #include disclaimer/favourite | --Chris Hardwick ___ 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] Lighten / Darken tool is where?
To all who replied, thank you very much; your help is sincerely appreciated On 7.3.2014 at 5:19 PM pfaoro wrote: We have three tools for this: - for the easy way: the Brightness/Contrast Tool, - for the intermediate way: the Levels Tool, - for the expert way: the Curves Tool. You find them in the toolbox, in the Colors menu or in the Tools/Color Tools menu. Kind regards, Sven -- pfaoro (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-list List archives: https://mail.gnome.org/archives/gimp-user-list
[Gimp-user] Resynthesizer 1.0 bug-clone tool not working after resynthesize
Hi. I have some problems with Resynthesizer. I make a selection, then I go to filters-map- Resynthesize. If I try to use clone or healing brush tool after that, they are not working. I am using Gimp 2.8 on Windows XP SP3. ___ 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] Gimp Java Batch not working
On 03/07/2014 10:54 AM, Andreas Truszkowski wrote: ... the Java code :) : File imageFile = new File(this.targetDir.getPath() + File.separator + UUID.randomUUID().toString() + .png); File testFile = new File(this.targetDir.getPath() + File.separator + test.png); Tools.compressJpegFile(imageFile, inImage, 1.0f); String argString = String.format((let* ((image (car (gimp-file-load RUN-NONINTERACTIVE \%s\ \%s\))) + (drawable (car (gimp-image-get-active-layer image + (plug-in-sobel RUN-NONINTERACTIVE image drawable 1 1 1) + (gimp-file-save RUN-NONINTERACTIVE image drawable \%s\ \%s\) + (gimp-image-delete image)), imageFile.getPath(), imageFile.getPath(), testFile.getPath(), testFile.getPath()); String script = String.format(\C:\\Program Files\\GIMP 2\\bin\\gimp-2.8.exe\ -i -b '%s' -b '(gimp-quit 0)', argString); ProcessBuilder builder = new ProcessBuilder(script); builder.directory(this.targetDir); builder.redirectErrorStream(true); if (!this.isCancelled()) { Process process = builder.start(); InputStream is = process.getInputStream(); InputStreamReader isr = new InputStreamReader(is); BufferedReader br = new BufferedReader(isr); String line; while ((line = br.readLine()) != null) { System.out.println(line); } System.out.println(Program terminated!); process.waitFor(); } Kind regards, Andreas Am 07.03.2014 10:52, schrieb Andreas Truszkowski: Hi there, I am new to Gimp and first I want to thank the Gimp community for such a great application. But here is my problem. I try to process images from within a Java application. When I run the assembled batch command the gimp console writes that the execution was successfull. But actually nothing happens. Here is my Java code: The resulting command line is: C:\Program Files\GIMP 2\bin\gimp-2.8.exe -i -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE z:\test\26cf5abe-eaa1-4ddd-af04-3d9e59804ed2.png z:\test\26cf5abe-eaa1-4ddd-af04-3d9e59804ed2.png)))(drawable (car (gimp-image-get-active-layer image(plug-in-sobel RUN-NONINTERACTIVE image drawable 1 1 1)(gimp-file-save RUN-NONINTERACTIVE image drawable z:\test\test.png z:\test\test.png)(gimp-image-delete image))' -b '(gimp-quit 0)' Executing this directly from command line does not fix the problem. Anyone a clue what I make wrong? Thank you in advance... You should really use the |*ProcessBuilder http://docs.oracle.com/javase/7/docs/api/java/lang/ProcessBuilder.html#ProcessBuilder%28java.util.List%29*(List http://docs.oracle.com/javase/7/docs/api/java/util/List.htmlString http://docs.oracle.com/javase/7/docs/api/java/lang/String.html command) contructor, that will give you more control on the parameters and let you avoid a lot of quoting and escaping. And instead of calling Gimp, make it call a small script/program that dumps its parameters to stdout. As far as I can tell you are using the Unix shell syntax (leading single quote) while the file names indicate you are on Windows... You will also save you a lot of grief by making all your scheme code a small script. Once that works you can try to pack the whole script back in a parameter. If you call gimp with -c you will get messages printed to the console (ie, stdout) instead of being displayed by the graphical UI | ___ 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