It is currently Mon Jul 28, 2014 10:22 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 274 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 28  Next
Author Message
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 4:51 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 608
PhotoComix wrote:
PS
any chance that may work in linux too ? i use xnview with wine


Maybe - it would just require changing the command to be the wine launcher.

(I really should have uploaded it with the path already set to Program Files... hadn't realized till after I had though. Sorry for the problems with that.)

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 4:53 pm  (#12) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2685
PC: I got it recognized, but its not working when you select the options. It does nothing. I am not so certain I can simply re-install Xnview, like Lyle did, because the PATHS in Linux are far different than in Windows.

I see Rob A answered your question as I was typing this. I'd already commented about installing in Ubuntu.

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 5:02 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6323
One other weird issue. When I actually try to run an adobe filter (only used built in filter earlier) I get missing plugin.dll error and have to say ok a few times then the filter the adobe filter selection shows up and I can run the filter. When I run XNView stand-a-lone, I don't get this error. I can tolerate this issue, but would be cool if someone could explain why. Including the error in capture. :)


Attachments:
xnerr.png
xnerr.png [ 26.19 KiB | Viewed 733 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 5:09 pm  (#14) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2685
I guess my next question (couldn't find the answer in my Python manual) is when using a Linux path, such as seen here:

# Command line
path = "/home/mahvin/.wine/drive_c/Program Files/XnView"
command = path + "xnview.exe " + "\"" + tempfilename + "\""

Wouldn't the command path (see highlighted) have to follow the same Linux conventions? I tried making backslashes into forward slashes, but that threw str errors.

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 5:46 pm  (#15) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 11316
Location: "Looking for my eraser" =P
Okay i tried to install it in XP and i get the dialog to pop-up that asks if i want a new from visible or layer.
No matter which i choose the plug-in seems to load then nothing.I placed this in for path..
# Command line
path = "c:\\Program Files\\XnView\\"
command = path + "xnview.exe " + "\"" + tempfilename + "\""

If i choose from new it actually copies the entire image, which is correct, but then the plug-in just does nothing.
Any ideas?

_________________
Image
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 6:52 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6323
I think you have the same issue as I did Rod. I uninstalled XNView and re-installed it under c:\pf directory. I think Python for GIMP doesn't work right with long path names. Might try do use progra~1\\XNView\\ and see if that works. I just went ahead and installed XNView like Rob had it. Also, w.r.t. PS filters, you will get weird error pop-ups, but just click OK til they stop. Small price to pay for being able to use them in GIMP 2.6.11 (which I can now; same problem with 2.6.10 though). One other issue is w.r.t. transparent layers. You will need to save the file externally as a PNG file then drag it on top since XNView doesn't support copy/paste Alpha transference. PC already contacted the XNView team, but I don't know where that issue stands currently. My flow's a little slower now (moved all my PS compatible filters from my GIMP folder to my 8fb folder outside of GIMP except for Impressionist (doesn't appear to work in XNView). GIMP does launch just a little faster now (but I still have way too many brushes and Script-fus). lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 8:14 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6323
Well guess what. It's not GIMPs fault. If you use XNView's build in browser to open an image and then run a PS filter, you get no error, but, if you rightclick and open with XNView and then try to use a PS filter, you get the errors. The problem apparently is with XNView. Not sure if the same issue is with XNView and XP. Still, ignoring the errors by clicking OK a few times will eventually get you to the filter dialogue. :)


Attachments:
ewg.png
ewg.png [ 20.84 KiB | Viewed 711 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 8:26 pm  (#18) 
Offline
GimpChat Member

Joined: Oct 06, 2010
Posts: 2685
Image

Well, apparently it's saving (at least) the data to a temp file, but it can't be called back, because it never actually saves to the temp folder (or the temp folder doesn't exist - depends on one or the other). It still doesn't load XnView. And it doesn't revert to XnView when I have it opened in the background.

Oh well, I tried... :)

_________________
You cannot do a kindness too soon because you never know how soon it will be too late.

~Ralph Waldo Emerson


Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 8:47 pm  (#19) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 608
OK I found a few other things-

The whole command line needs to be quoted if it has spaces, and the popen should have the args broken out.

Try the attached.

mahvin- I'm just using the built in temp location gimp provides. It is likely that the unix path is not accessable inside the wine environment. http://www.winehq.org/docs/winedev-guide/x3016 gives some details.

I'll try setting it up under ubuntu and see, OK?

lylejk - it was the lack of transparency pasting that led me to try this in the first case!

EDIT: Latest script here: viewtopic.php?f=9&t=970&start=20#p10510

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Last edited by RobA on Sun Jan 09, 2011 10:44 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: XNViewShell
PostPosted: Fri Jan 07, 2011 9:00 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 6323
It does transfer images that have transparancies Rob (and gives you a new result with transparancies), but, if you use a filter like Cybia's Alphaworks filter, it won't work (Start off with an image with alpha channel of course. It works inside XNView, but it won't get transferred back into GIMP) unless you save the PNG file and drag it back. Not that big a deal though. Not sure why I'm getting all the error messages, but it's not due to your Script or GIMP (see comments above). Not sure if the developers know this and will patch it or not. It could be just my PC too. lol

:)

_________________
Lyle

Psalm 109:8

Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 274 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 28  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login  

* Subscribe to Gimp Chat's RSS Feed    * Subscribe to Gimp Chat's Tutorial Feed    * Subscribe to Gimp Chat's G'MIC Feed


Powered by phpBB3 © phpBB Group