Switch to full style
Ask all general Gimp related questions here
Post a reply

Cannot use Shellout

Thu Oct 27, 2011 8:24 pm

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).

Code:
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.

Re: Cannot use Shellout

Thu Oct 27, 2011 8:37 pm

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

Re: Cannot use Shellout

Thu Oct 27, 2011 10:17 pm

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

Re: Cannot use Shellout

Fri Oct 28, 2011 1:39 am

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.

Re: Cannot use Shellout

Fri Oct 28, 2011 2:04 am

It lloks like the module/plugin to handle files in PNG format isn't available. Can you load & save PNG files by hand?

Re: Cannot use Shellout

Fri Oct 28, 2011 3:44 am

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.

Re: Cannot use Shellout

Fri Oct 28, 2011 7:52 am

This can again ?
http://www.gimpchat.com/viewtopic.php?f=9&t=970&start=70%20#%20p11206

Re: Cannot use Shellout

Fri Oct 28, 2011 7:59 am

MareroQ wrote:This can again ?
http://www.gimpchat.com/viewtopic.php?f=9&t=970&start=70%20#%20p11206


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

Re: Cannot use Shellout

Fri Oct 28, 2011 8:01 am

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

Re: Cannot use Shellout

Fri Oct 28, 2011 8:10 am

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

file-png.zip
(26.93 KiB) Downloaded 87 times


Thanks MareroQ and Paynekj!

Re: Cannot use Shellout

Fri Oct 28, 2011 5:41 pm

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

Re: Cannot use Shellout

Fri Oct 28, 2011 7:23 pm

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.

Re: Cannot use Shellout

Fri Oct 28, 2011 7:36 pm

Try my tute Graechan
viewtopic.php?f=9&t=212&start=80

Re: Cannot use Shellout

Fri Oct 28, 2011 9:30 pm

molly wrote:Try my tute Graechan
viewtopic.php?f=9&t=212&start=80

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.

Re: Cannot use Shellout

Sat Oct 29, 2011 4:58 am

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.

Re: Cannot use Shellout

Sat Oct 29, 2011 5:46 am

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

Re: Cannot use Shellout

Sat Oct 29, 2011 6:06 am

PS Also the other script that need to call png plugin will fail if you don't replace it

Re: Cannot use Shellout

Sat Oct 29, 2011 2:35 pm

Be sure file-apng and the apng ui file are both in Gimps program directory plugin folder.

Re: Cannot use Shellout

Sat Oct 29, 2011 7:19 pm

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

Re: Cannot use Shellout

Sun Oct 30, 2011 5:34 am

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. :)
Post a reply