It is currently Mon Apr 15, 2024 8:03 am


All times are UTC - 5 hours [ DST ]


Switch to mobile style

Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 15  Next
Author Message
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 15, 2011 2:29 pm  (#121) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2238
Location: Poland
The highest tribute to RobA !!!
... and another question:
svg if not - it can java ?

http://www.flickr.com/groups/gimpusers/discuss/72157612967195386/

Why would it beautiful ?

Only for three examples:

Java Image Editor (for Warp Tool):
http://www.jhlabs.com/ie/index.html

Delineate:
http://delineate.sourceforge.net/

Artifical Mosaic Creator:
http://www.gz4.it/gdiblasi/pubblicazioni/mosaic.php


Attachments:
1 - Image Editor-Image Editor-Warp Tool 1.png
1 - Image Editor-Image Editor-Warp Tool 1.png [ 1.8 MiB | Viewed 1847 times ]
2 - Delineate.png
2 - Delineate.png [ 68.73 KiB | Viewed 1847 times ]
3 - Artifical Mosaic Creator.png
3 - Artifical Mosaic Creator.png [ 186.39 KiB | Viewed 1847 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 15, 2011 3:25 pm  (#122) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Yes - It can work for java.... but to work "best" the java jar must be able to take a command line parameter of the file to open (image editor does, the mosaic one doesn't seem to).

I put the jars in a folder C:\JavaJars\

You have to create a helper batch file.... here is one I called imageeditor.bat
@echo off
echo *** Do Not Close this Window ***
echo Temp File: %1
C:\Program Files\Java\jre6\bin\java.exe -jar c:\JavaJars\ImageEditor.jar %1


Then add the following line to the ShellOut python file in the command list def:
  ["Java Image Editor", "\"C:\\JavaJars\\imageeditor.bat\""],


You can do the same for the mosaic, but you need to manually open the temp file then resave the temp file.... much less useful.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Feb 15, 2011 10:41 pm  (#123) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
I tried playing with the mosaic program directly and it works for everything but saving. I had to do screen captures and piece them together in Gimp. Is there something special to do to save files?

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 8:16 am  (#124) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Saves OK for me. I just clicked on the save icon (disk)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 9:12 am  (#125) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
This is what I get if I try and save anything! Win 7 suuuuuucccckkkkksssss!!!!


Attachments:
Error.jpg
Error.jpg [ 17.15 KiB | Viewed 1816 times ]

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 12:25 pm  (#126) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2238
Location: Poland
So far it does not work for me - start batch file...(flash terminal window) ...and nothing.
Do I need to change the settings Advanced in Java Control Panel in Windows XP ???


Attachments:
Java.png
Java.png [ 22.46 KiB | Viewed 1807 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 2:41 pm  (#127) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
add a pause line in the batch file to see what the message is.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 3:50 pm  (#128) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2238
Location: Poland
Mistake appears in line:
Name 'C:\ Program' it is not recogniseable....

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 6:12 pm  (#129) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
This same error comes up when i try to start Delineate or any other jar file.
Windows cannot find "C:\Program" i have no idea what it means.I even tried copying the folder Java out of Program Files to see if the long file name was the problem.Still didn't work.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 6:35 pm  (#130) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
I can't even get delineate to work in Win7 (haven't tried it in my VM XP yet). I can't get Autotrace to work in Win7 either but works fine in my VM XP. They recently updated Potrace to 64-bit which is cool, but Potrace, even the old version, works fine in Win7 so I have no idea what the issue is with Autotrace. Oh well. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 6:53 pm  (#131) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Okay i added these
["Java Image Editor", "\"C:\\JavaJars\\imageeditor.bat\""],
["Java PIM", "\"C:\\JavaJars\\PIM.bat\""],
["Java delineate", "\"C:\\JavaJars\\delineate.bat\""],
["Java mosaic", "\"C:\\JavaJars\\mosaic.bat\""],
["Java photomosaic", "\"C:\\JavaJars\\photomosaic.bat\""],

to the ShellOut.py file and also created batch files for each one in the JavaJar folder.

I went to open the layer in Image Editor , and the command window opened for a millisecond and copied the layer and placed it on top of all the other layers. I tried with all the other jar executes and the same thing happened. Something to do with that C:\Program" error still i guess.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 6:55 pm  (#132) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
In Ubuntu, you have to assign the jar files and associate them to Java, maybe in Windows, the batch file needs to include that process somehow?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Wed Feb 16, 2011 7:49 pm  (#133) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I don't know, i cant get either potrace or autotrace to work either.I can throw a img file on potrace it will create a eps file but it won't open.
I need potrace and autotrace to get Delineate to work, but i do not understand why the others will not open.
I have the java path to bin and lib in my variables "PATH" and "JAVA_HOME"
Not getting it to find Java for some reason, and i just installed the newest version thinking that was it...nada. :\

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 17, 2011 11:45 am  (#134) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2238
Location: Poland
In the file. bat interferes space between Program and Files.

When you copied the javaw.exe to c: \JavaJars and changed to:

C:\JavaJars\javaw.exe -jar c:\JavaJars\ImageEditor.jar %1

it works (I checked only ImageEditor.jar).
Important (XP 32 bit): java.exe - not javaw.exe - yes!

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 17, 2011 12:16 pm  (#135) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks ill give it a try MareroQ! :)
Nope i tried that and it opens a command window then copies the layer and pastes it on top.
This is what i did -
I opened the bat file in Notepad ++, deleted everything in it, and pasted this-
@echo off
echo *** Do Not Close this Window ***
echo Temp File: %1
C:\JavaJars\java.exe -jar c:\JavaJars\ImageEditor.jar %1

But shouldn't the first part of the command be pointing to the location of Java.exe?
My Java.exe isn't in my JavaJar folder. - Should it be -??

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 17, 2011 12:38 pm  (#136) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Changed it to this
@echo off
echo *** Do Not Close this Window ***
echo Temp File: %1
C:\jre1.5.0_05\bin\java.exe -jar c:\JavaJars\ImageEditor.jar %1

And placed the java folder in C directory
WORKS!!!!
Image

:wh :coolthup :yes :tyspin

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 17, 2011 12:58 pm  (#137) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
14 pages...i would need a summary
well i try now to add some java apps...

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 17, 2011 1:04 pm  (#138) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Well so far Image Editor is the only one i can get to work
PhotoMosaic
Mosaic
Delineate
Puzzle Maker (PIM)
All these will open except Delineate due to potrace and autotrace problems.
The rest open but will not import the image from GIMP.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 17, 2011 1:31 pm  (#139) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2238
Location: Poland
I copied jawaw.exe -> C:\ JawaJars and also works.
For "Warp Tools" and "Perspective Transform Tools" - it was worth !!!

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Feb 17, 2011 1:51 pm  (#140) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2238
Location: Poland
And what do you think about this?
["OpenOfficeDraw", "\"C:\\Program Files\\OpenOffice.org 3\\program\\sdraw.exe\""],
Unfortunately, without a simple return.

_________________
Image

Slava
Ukraini!


Top
Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 15  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Extended version ShellOut.

1

No new posts Attachment(s) How to call a python filter to run interactively

10



* Login  



Powered by phpBB3 © phpBB Group