It is currently Thu Jun 27, 2024 7:21 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Cannot use Shellout
PostPosted: Thu Oct 27, 2011 8:24 pm  (#1) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GIMP Version: 2.6.11
Operating System: Windows
OS Version: Win7
GIMP Experience: Beginner Level



When my old PC died and my new PC had win7 installed I discovered my callout plug-in no longer functioned, I don't speak python
or windows (nobody understands wndows) so I was hoping sombody could spot the obvious.
this is my shortcut entry "C:\Program Files (x86)\XnView\xnview.exe",and my plug-in file follows (presently only setup for Xnview).

def listcommands(option=None):
  #
  # Insert additonal shell command into this list.  They will show up in the drop menu in this order.
  # Use the syntax:
  # ["Menu Label", "command", "ext"]
  #
  # Where what gets executed is command fileame so include and flags needed in the command.
  programlist = [
  ["XNView", "\"C:\\Program Files (x86)\\XnView\\xnview.exe\"", "png"],
  #["MS Paint", "\"C:\\WINDOWS\\system32\\mspaint.exe\"", "bmp"],
  #["Deep Paint", "\"C:\\Program Files\\DeepPaint\\deeppaint.exe\"", "jpg"],
  #["Inkscape", "\"C:\\Program Files\\Inkscape\\inkscape.exe\"", "png"],
  #["PaintDOTNet", "\"C:\\Program Files\\Paint.NET\\PaintDotNet.exe\"", "png"],
  #["MyPaint", "\"C:\\Program Files\\MyPaint\\mypaint.exe\"", "png"],
  #["Photo Filter Factory", "\"C:\\Program Files\\Photo Filter Factory\\Photo Filter Factory.exe\"", "png"],
  #["Photo Pos Pro", "\"C:\\Program Files\\Photo Pos Pro\\Photo Pos Pro.exe\"", "png"],
  #["Java Image Editor", "\"C:\\JavaJars\\imageeditor.bat\"", "png"],
  #["Java Mosaic", "\"C:\\JavaJars\\mosaic.bat\"", "png"],
  #["Vector Magic", "\"C:\\Program Files\\Vector Magic\\vmde.exe\"", "png"],
  #["Photo Clinic", "\"C:\\MAGIX\\Photo_Clinic_45\\PhotoClinic.exe\"", "png"],
  ["","",""]
  ]

These are the menu entry used and the errors returned.

Image

Image

Image

Image

Hoping someone can assist in this.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Last edited by Graechan on Fri Oct 28, 2011 7:02 pm, edited 2 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Cannot use Shellout
PostPosted: Thu Oct 27, 2011 8:37 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
Shellout requires python. Windows GIMP doesn't have python by default unfortunately. Click link below to learn how to install it for GIMP. As a side note, I did not have to uninstall GIMP and re-install it. All I had to do is re-install GIMP. The procedure only works with 32-bit GIMP (which runs perfectly fine win Win7 64-bit). :)

http://www.gimpusers.com/tutorials/inst ... -6-windows

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Thu Oct 27, 2011 10:17 pm  (#3) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Rod created a nice python tutorial for Windows and it's located right here on Gimp Chat.

viewtopic.php?f=10&t=2277

More good info can be found in the following threads..

viewtopic.php?f=4&t=2118

search.php?keywords=python&sf=titleonly&sr=topics

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 1:39 am  (#4) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I have python installed with many python plug-ins working,this is what is confusing as my shellout file looks correct, its the errors that I don't fully understand and was hoping someone could explain them.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 2:04 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
It lloks like the module/plugin to handle files in PNG format isn't available. Can you load & save PNG files by hand?

_________________
Image


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 3:44 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Yes it looks like it errors saving the PNG temp file.Try changing it to JPG instead.
change this
["XNView", "\"C:\\Program Files (x86)\\XnView\\xnview.exe\"", "png"],

To this
["XNView", "\"C:\\Program Files (x86)\\XnView\\xnview.exe\"", "jpg"],

If that works then each entry you create will have to be either bmp, or jpg.

_________________
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: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 7:52 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
This can again ?
http://www.gimpchat.com/viewtopic.php?f=9&t=970&start=70%20#%20p11206

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 7:59 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
MareroQ wrote:


I believe that was Rob and Mahvin trying to get the shellout script to run in Linux under wine.This is for windows platform.

_________________
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: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 8:01 am  (#9) 
Offline
Script Coder
User avatar

Joined: Jun 22, 2010
Posts: 1171
Location: Here and there
I think what MareroQ is referring to is this post: viewtopic.php?f=9&t=970&start=70%20#p11206
Where the same problem was found to be a conflict with APNG


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 8:10 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Hah i forgot about that. :)
Try moving file-png back into the plug-in folder, and see if that works Graechan.

Attached as zip here

Attachment:
file-png.zip [26.93 KiB]
Downloaded 86 times


Thanks MareroQ and Paynekj!

_________________
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: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 5:41 pm  (#11) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Right on the money everyone I must have replaced png with apng just before my motherboard fized and had wrongly presumed my problem was with reinstalling gimp on Win7.Your all champs to me and my fading memory. :bigthup

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 7:23 pm  (#12) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Well it got shellout(Xnview)to work but it disabled my apng plug-in that I use a lot, changing to jpg or bmp didn't work(strange?), have I got the correct apng plug-in. Does anyone have apng and png files installed and working properly all I can remember is that you had to delete the file png.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 7:36 pm  (#13) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Try my tute Graechan
viewtopic.php?f=9&t=212&start=80

_________________
Image


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Fri Oct 28, 2011 9:30 pm  (#14) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
molly wrote:

Molly thankyou for your reply but I'm in a catch 22 situation where no png file=no shellout(even when changing shellout to jpg or bmp extensions) and with png file=no apng functionality.P.S. I'm using my 2-6-11 version of Gimp.

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Sat Oct 29, 2011 4:58 am  (#15) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Don't you still have access to APNG by selecting APNG from the file types list when saving?

Both PNG and APNG should be on the list, assuming the APNG plug-in is installed properly. Adding file-png back into the system plug-in folder shouldn't disable apng support. It just changes the default back to png.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Sat Oct 29, 2011 5:46 am  (#16) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
If is Gimp 2.7.4 compiled by Partha the png plugin was replaced by the apng one but the apng plugin is too buggy and in many cases

the safest solution is replace file_ png.exe with that from Rod you may also try to rename the apng plugin (i just dumped away because i stumbled in all its bugs :gaah ...well if was no buggy would be no problem the apng plugin should support in theory both format )

anyway replace the the png plugin file is the quickest...and is also needed to export png without problem

_________________
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: Cannot use Shellout
PostPosted: Sat Oct 29, 2011 6:06 am  (#17) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
PS Also the other script that need to call png plugin will fail if you don't replace it

_________________
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: Cannot use Shellout
PostPosted: Sat Oct 29, 2011 2:35 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Be sure file-apng and the apng ui file are both in Gimps program directory plugin folder.

_________________
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: Cannot use Shellout
PostPosted: Sat Oct 29, 2011 7:19 pm  (#19) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
GnuTux wrote:
Don't you still have access to APNG by selecting APNG from the file types list when saving?

Both PNG and APNG should be on the list, assuming the APNG plug-in is installed properly. Adding file-png back into the system plug-in folder shouldn't disable apng support. It just changes the default back to png.

With png and apng files installed

Image

and I select png+apng image it saves the image as the 4 layers

Image

And it saves my 4 layers OK

Image

But when I try to reload in gimp it only loads the bottem layer(it loses the other 3 layers)

Image

It seems the problem is in opening apng images in gimp with the png file installed

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Cannot use Shellout
PostPosted: Sun Oct 30, 2011 5:34 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Remember you have to open as png-apng file. to view the layers in the apng animation.

Try this -
Create your apng animation.(save it as a png-apng)
Open Gimp and go to open file
Browse to your new apng animation you just created
Now in the drop down for extensions choose open as png-apng.

See if that works. :)

_________________
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 new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


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

1



* Login  



Powered by phpBB3 © phpBB Group