It is currently Sun May 05, 2024 6:35 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 15  Next
Author Message
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Sat Mar 26, 2011 12:36 pm  (#171) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
OOPPSS a whole period went missed, fixed now

_________________
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: Wed Mar 30, 2011 7:46 pm  (#172) 
Offline
New Member

Joined: Mar 30, 2011
Posts: 1
Thanks for this python plugin. I have recently gotten into the GIMP and really enjoy working with it. I'm on windows and have found so far that Paint.NET works the best for a PS plugin carrier, just for the fact that it supports .png transparency. I found a lot of the other programs listed including XNView don't handle the transparency so the filters I use don't work correctly. I bought an Eye Candy Bundle a long time ago and under Paint.NET and this plugin the filters work flawlessly with non-square transparency.

I created a derivative that just calls Paint.NET using your original 0.3 version code. I realize that you made version that allows the program to be selected but I don't need all the others if Paint.NET works :)

Anyways, wanted to sign up for the forums and say thanks, Rob.


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Thu Mar 31, 2011 12:08 pm  (#173) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Paint.Net can run Adobes 8bf filters?

_________________
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: Fri Apr 01, 2011 3:57 pm  (#174) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2254
Location: Poland
Rod
... posted 104 - new File version 1.0.3.2.(2011-03-29)
http://forums.getpaint.net/index.php?/topic/20622-psfilterpdn-2011-01-28/

RobA

Contrary to the opinion that the Gimp can not create a good svg - example-created in the GIMP [2 - gimp-temp-24791 (copyright Rod).svg ] using plugin-trace.py
http://registry.gimp.org/node/21349 (for me, unfortunately only in Ubuntu - but apparently for some it also works in XP?)
So the question: "Inkscape is SVG - not designed for raster images, so not sure what you are asking for. Do not know about open office, as I do not use it." I ask again (since it can indirectly) so as to create the file (as XnviwShell) to export (svg) directly into Inkscape?


Attachments:
1 - 196_BadCruise (copyright Rod).png
1 - 196_BadCruise (copyright Rod).png [ 156.23 KiB | Viewed 14603 times ]
2 - gimp-temp-24791 svg (copyright Rod).zip [7.73 KiB]
Downloaded 214 times
3 - SVG3 (copyright Rod).png
3 - SVG3 (copyright Rod).png [ 50.71 KiB | Viewed 14603 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Fri Apr 01, 2011 4:12 pm  (#175) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
MareroQ wrote:
I ask again (since it can indirectly) so as to create the file (as XnviwShell) to export (svg) directly into Inkscape?


I guess the answer is no.

You used a python script to call autotrace to create the SVG file. Gimp can not create such a file on its own, only export paths as a svg file. That is completely different than what this plugin does, so really needs something written differently (which is what the plugin you linked to plugin-trace.py does... exports the image as a raster image png or bmp I'd guess, then calls autotrace to generate the svg. I'm guessing that could be modified to launch inkscape and load the svg file created by autotrace.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Fri Apr 01, 2011 4:38 pm  (#176) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2254
Location: Poland
At Google, the password SVG on GIMP
http://lists.xcf.berkeley.edu/lists/gimp-user/2001-February/003102.html
Some dreams never die ...

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Fri Apr 01, 2011 4:43 pm  (#177) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
The other option is to work backwards from inkscape.

Quote:
You might have interest in a little script I wrote for gimp to implement "file linked layers". It was requested on the gimp mailing list here and my response is here that explains how it works.

I use it by saving a png from inkscape, then loading it as a file linked layer into Gimp. Then any time I change it in inkscape and re-save the png, you can use the "reload" command to pull the layer back into Gimp. Saves a bit of time.


-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Fri Apr 01, 2011 4:47 pm  (#178) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12520
MareroQ wrote:
At Google, the password SVG on GIMP
http://lists.xcf.berkeley.edu/lists/gimp-user/2001-February/003102.html
Some dreams never die ...


Inkscape does allow bitmap mixing with vector, but not really good for bitmap editing itself. I remember Microsoft was working on a product, I believe, called Acryllic that would have been a true raster/vector editor, but believe that project died. I mentioned this before, but I do wish some genious would just combine Inkscape and GIMP into one program but don't think that will ever happen. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Fri Apr 01, 2011 4:54 pm  (#179) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Quote:
Rod
... posted 104 - new File version 1.0.3.2.(2011-03-29)
http://forums.getpaint.net/index.php?/t ... 011-01-28/

Oh that is too awesome - how did i miss this? - thanks MareroQ
Image


Quote:
I do wish some genius would just combine Inkscape and GIMP into one program

Oh how wonderful that would 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: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Apr 05, 2011 2:56 pm  (#180) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Hi all-

Attached is version 0.5 that now has a parameter to specify the type of raster file to export. Please note that this will use the gimp default settings for the filetype (i.e. you can't specify the jpeg compression level if you use "jpg"). (MSpaint is bmp and deep paint is a jpg as a test. I'd suggest using png whenever possible as it supports alpha/transparency...)

I've updated the syntax of the command people have reported and they are listed here:

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


Just comment/uncomment/add any new ones and post the syntax used.

-Rob A>


Attachments:
File comment: ShellOut python plugin version 0.7
ShellOut.zip [2.65 KiB]
Downloaded 3818 times

_________________
Image
Fantasy Cartography and Mapping by RobA


Last edited by RobA on Tue Feb 07, 2012 12:13 pm, edited 1 time in total.
Top
 Post subject: Re: XNViewShell - and other Programs you can call with Gimp
PostPosted: Tue Apr 05, 2011 3:03 pm  (#181) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
lylejk wrote:
I remember Microsoft was working on a product, I believe, called Acryllic that would have been a true raster/vector editor, but believe that project died.


I know a fellow who swears by Xara Extreme (now Xara Designer?): http://www.xara.com/us/products/designer/features/

This seems a true hybrid vector/raster editor.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Apr 05, 2011 4:26 pm  (#182) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
A very interesting vector/raster hybrid is RealDraw...that too the mix even add a touch of 3D
http://www.mediachance.com/realdraw/

_________________
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: Wed Apr 06, 2011 3:11 pm  (#183) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod wrote:
I believe you have to call the extension from the command line Marero.
["XNView", "\"C:\\Program Files\\XnView\\xnview.exe\"", "bmp"],

or
["XNView", "\"C:\\Program Files\\XnView\\xnview.exe\"", "jpg"],

or
["XNView", "\"C:\\Program Files\\XnView\\xnview.exe\"", "png"],


That is supposed to tell the program Gimp to save the temp file as an certain extension, and open it in that program as that extension i believe.
I did try it this way and it didn't work.


Bringing this back on topic :P This syntax will now work, Rod, for software that will not work with png files.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Fri Apr 22, 2011 1:47 pm  (#184) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2254
Location: Poland
Versions lower than 0.5 to write the temporary file:
c: \ Documents and Settings \ ~ ~ \. gimp-2.6 \ tmp \

Version 0.5 saves the temporary file to:
c: \ Documents and Settings \ ~ ~ \ Local Settings \ Temp \

What is due? On which it depends?

Maybe the next version of the file selection tmp / Temp? (application without a direct return to the Gimp - for example delienate [http://delineate.sourceforge.net/])

or an indication that piece of code decides this?
from gimpfu import *
import math
   
def pyTmp(image, drawable, visible):
   pdb.gimp_file_save(image, drawable, visible, "")
register(
   "python_fu_temp_png",
   "Temp",
   "Temp",
   "MrQ",
   "",
   "2011",
   "<Image>/File/TEMP(png)",
   "RGB*, GRAY*",
   [
      (PF_STRING, "png_filename", "Filename to export", "C:\\TEMP\\walk.png"),
   ],
   [],
   pyTmp)

main()


A piece of code to write in a specific location work - if it can connect to se ShellOut?


Attachments:
Loc temp.png
Loc temp.png [ 12.75 KiB | Viewed 2548 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Fri Apr 22, 2011 2:45 pm  (#185) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
This is very interesting Rob because now i can export images from Gimp as SVG to Inkscape. :)
Or any other file to its program in that programs native format. - in theory - Correct?

Marero my temp png file always saves in Local Settings/Temp
Just as i typed this the server went down for update. :lol
O i hope you backed up the database! :)

_________________
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: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Apr 26, 2011 6:27 pm  (#186) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Rod wrote:
This is very interesting Rob because now i can export images from Gimp as SVG to Inkscape. :)
Or any other file to its program in that programs native format. - in theory - Correct?


Not really, as Gimp has no "save" as SVG.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Apr 26, 2011 7:05 pm  (#187) 
Offline
GimpChat Member
User avatar

Joined: Apr 18, 2011
Posts: 619
Location: New York
I have used this:
Export as SVG

_________________
Ubuntu 22.04, Kernel i686, 5.4.0-131-generic
python3 v3.10.6 ----- GIMP - ver 2.10.30


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Apr 26, 2011 7:43 pm  (#188) 
Offline
Script Coder
User avatar

Joined: Jul 14, 2010
Posts: 697
Fair enough but that doesn't export anything vector (svg) just a bunch of raster images. It is just as effective to send it to inkscape as a PNG.

-Rob A>

_________________
Image
Fantasy Cartography and Mapping by RobA


Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Wed Apr 27, 2011 3:22 pm  (#189) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2254
Location: Poland
Old Times - a little grief ... svg-path-export.scm

And the collection ShellOut - Jdraw_v1.1.5.jar
http://jdraw.sourceforge.net/index.php?page=6


Attachments:
svg-path-export_scm.png
svg-path-export_scm.png [ 158.93 KiB | Viewed 2504 times ]
JDRAW.png
JDRAW.png [ 102.16 KiB | Viewed 2504 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: ShellOut.py (was XNViewShell) - Call external programs
PostPosted: Tue Feb 07, 2012 11:07 am  (#190) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2254
Location: Poland
Use from Shellout:
["Menu Label", "command", "ext"]
it change file extension - but not a real format.
You can see in the header - or open it in IrfanView.
Example http://www.gimpchat.com/viewtopic.php?f=22&t=1873&start=20#p46115
Or is it possible to add one more option to Shelout ?

The addition of various:

pdb.file_png_save …
pdb.file_tiff_save2…

and actual choice: bmp, jpg, png, tiff …
(or use the corresponding pdb.file_xyz_save…. according to the given extension).


Attachments:
IrfanView.png
IrfanView.png [ 22.76 KiB | Viewed 2312 times ]
Shellout new.png
Shellout new.png [ 15.66 KiB | Viewed 2312 times ]

_________________
Image

Slava
Ukraini!
Top
Post new topic Reply to topic  [ 295 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 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