You are here

Shellout

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!

This is the new and improved XNView plugin.

Updated to V 0.7 to fix a bug when saving the files files in a format other than png

This python script will call an external program, providing the active layer or a new from visible layer to this external program via a temp file. Once the external program is completed, it should save/overwrite the orignal temp file which gets pulled back in to gimp.

This was initially developed to use photoshop plugins under XNView since pspi support is more or less broken in the latest versions of gimp.

This latest version allows specifying the filetype, as not all external programs can use png files, so as long it is a gimp supported extension, it can be included.

The file currently has a whole list of supported application thanks to the folks at gimpchat:

# 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\\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"],
["","",""]
]

Note that a java program can be launched using a helper program. For example, here is byhelper for the mosaic java application:

@echo off
echo *** Do Not Close this Window ***
echo Temp File: %1
C:\Java\jre6\bin\java.exe -jar c:\JavaJars\mosaic.jar %1

The development thread is a gimpchat with a bunch of discussion on usage:
http://www.gimpchat.com/viewtopic.php?f=9&t=970&p=12542#p12541

This was designed for windows only, but I've hacked it to work in Ububtu calling xnview under wine. The necessary changes to do that are here: http://www.gimpchat.com/viewtopic.php?f=9&t=970&start=20#p10508

-Rob A>

AttachmentSize
ShellOut.zip2.65 KB
GIMP Version: 
Code License: 

Comments

More praise for Rob for Shellout. I don't want to elaborate further but to link the GIMPChat post below, but it really takes XNViewShell plugin to the next level. Bet Rob will release it here soon too. :)

http://www.gimpchat.com/viewtopic.php?f=9&t=970&p=12542#p12541

Again, great work!
But I hope that the master comes up with how to refresh the plug-ins (including PSPI)
[ http://registry.gimp.org/node/13473#comment-9959 ]
It is you who figured how to run impresjonisst.8bf in Gimp (and it does not work in XnView).
[ http://registry.gimp.org/node/22324#comment-6562 ]
At least for me, plug-ins still work (2.6.11 and 2.7.2), if they charge small amounts
(early examples: http://img687.imageshack.us/i/andrewsfilters001.jpg/ and there will be more

Sorry for bad english - but i must say with great appreciation - Your work is second to none!!

At soon Xnview opens

No hope to refresh PSPI but no any problem for Xnview

just , with a image open (so not in "browser" mode) click on Filter/Adobe Photoshop plugins..

There click "Configure", that will open a new window, there you may :
1) just click OK , that will refresh all the PS filters
2) add more folders of PS plugins...that become available at soon you click OK

So no problem to refresh,
no even problem to organize the filter list, you may add or remove on the fly any number of PS plugin folder, changes have always a immediate effect

In Windows as in Linux

There is no way to refresh plugins. They are only queried/registered on Gimp load, so Gimp must restart to recognize new plugins.

-Rob A>

Impressionist is pretty much the reason I've kept PSPI (still works in 2.6.11). I also agree that RobA deserves a heck of a lot of adulations. :)

This script actually helps XnView run better through the GIMP interface, but don't ask me why. When I open XnView on its own, if I open, edit, then close an image, XnView will crash. When I call XnView via this python plug-in using GIMP, I can open and close images without problems. Weird, I know, but all the more encouraging for using those PS filters that GIMP 2.6.11 seems to have choked out.

Thanks RobA!

Been using this gem for several days now and can tell you it works wonderfully. I use GIMP 32-bit in Win7 64-bit, but this one may even be able to be used in 64-bit GIMP (won't try since I have a few other GIMP specific filters that I use that I don't believe have a 64-bit compile). :)

Thanks Rob!
I love this plug-in. You rock! It also works in Windows XP with 2.7.1 version if anyone is interested.

best regards,
Rod

Subscribe to Comments for "Shellout"