It is currently Sun Nov 01, 2026 5:28 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: VoronoiSwitch
PostPosted: Tue Jan 06, 2015 9:03 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Next step for plug-ins VoronoiSwitch (for Windows).
http://www.gimpchat.com/viewtopic.php?f=10&t=11690&p=158164#p158439
Copy catalog voronoi on disc C:/voronoi; fle VoronoiSwith_savepng.py an VoronoiSwith_opensvg.py to catalog plug-ins (in different case to edit vor.bat and plug-ins).

I deleted older version plug-ins.


Attachments:
VorPlug.png
VorPlug.png [ 107.12 KiB | Viewed 3278 times ]
VorExample.png
VorExample.png [ 737.37 KiB | Viewed 3278 times ]

_________________
Image


Last edited by MareroQ on Fri Jan 23, 2015 5:26 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: VoronoiSwitch_03
PostPosted: Tue Jan 06, 2015 4:46 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16224
I get a trace back error on running either save as png or if i manually save as png in voronoi folder i get a error running open voronoi.svg

Image


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Wed Jan 07, 2015 11:22 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Hi Rod.

File voronoi.svg was created ?
Voronoi.exe it is very slow (--wait last of all working--).

_________________
Image


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Thu Jan 08, 2015 7:19 am  (#4) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16224
MareroQ wrote:
Hi Rod.

File voronoi.svg was created ?
Voronoi.exe it is very slow (--wait last of all working--).

No the svg nor the png were created. I keep getting the same error when trying to run either script.
Even when i save the PNG manually i get the same error trying to open the svg.


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Thu Jan 08, 2015 11:23 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Hi Rod.
Thank you for testing.
I assume that the file voronoi.exe and vor.bat is in the C: / Voronoi.
Copy there any png file and rename it to voronoi.png.
Use vor.bat (double click).
Do voronoi.svg file is created?

_________________
Image


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Fri Jan 16, 2015 11:15 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Mar 10, 2014
Posts: 845
thank you MareroQ
the program is working well!

Image


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Fri Jan 16, 2015 2:07 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16224
MareroQ wrote:
Hi Rod.
Thank you for testing.
I assume that the file voronoi.exe and vor.bat is in the C: / Voronoi.
Copy there any png file and rename it to voronoi.png.
Use vor.bat (double click).
Do voronoi.svg file is created?

Yes that worked. :) Thanks.


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Fri Jan 16, 2015 2:30 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16224
I wonder if its because i no longer have a file-png.exe? Seems like the file-apng should work though.

I changed
gimp.pdb.file_png_save
to
gimp.pdb.file_apng_save


Success! :)

Image


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Sat Jan 17, 2015 12:16 am  (#9) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16224
Sweet! Working great now.

Image


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Sat Jan 17, 2015 10:45 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Thanks Rod and Marcello for testing.
Feel free to test the new version:
another small change for the two files *.bat and save/open interactively.

I deleted older version plug-ins.


Attachments:
NewVer_0.4.png
NewVer_0.4.png [ 151.35 KiB | Viewed 2899 times ]

_________________
Image


Last edited by MareroQ on Fri Jan 23, 2015 5:22 pm, edited 1 time in total.
Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Sat Jan 17, 2015 12:52 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 10, 2014
Posts: 845
thanks MareroQ
I tested the new versione and is OK
Are you considering in a new version the possibility to change also the numbers of the stipple points? Now b&w is 9000 and color is 15000 so if I want change the numbers I have to modify the bat file.
thanks again for your nice job


Top
 Post subject: Re: VoronoiSwitch_03
PostPosted: Sat Jan 17, 2015 1:27 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
I also want the option "change the numbers of the stipple points" - but I can not yet (this is the beginning of my learning of programming in Python). Maybe for some time :oops:

_________________
Image


Top
 Post subject: Re: VoronoiSwitch
PostPosted: Fri Jan 23, 2015 5:30 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
Next small step:
- the interactive development the edition of parameters (in notepad2),
- connection of two (the open and the save) to one file.

For edit parameters:
Download notepad2 - free and open source Notepad2 (Copyright © 2004-2011 Florian Balmer): http://www.flos-freeware.ch/notepad2.html unzip (756 kb) and instal to C:\Notepad2.

Delete old version (VoronoiSwith_savepng.py, VoronoiSwith_opensvg.py, vorc.bat an vorb.bat)
Lokalizacja Voronoi -> C:\Voronoi

Tear-off menus
http://docs.gimp.org/en/menus.html#gimp-menus-introduction


Attachments:
VorSw 0.5.png
VorSw 0.5.png [ 130.1 KiB | Viewed 1498 times ]
VoronoiSwith_0.5.zip [332.54 KiB]
Downloaded 93 times

_________________
Image
Top
 Post subject: Re: VoronoiSwitch
PostPosted: Fri Jan 23, 2015 7:43 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Mar 10, 2014
Posts: 845
great job MareroQ :jumpclap :tyspin
I just tested and everything is OK
Image


Top
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group