It is currently Thu Apr 25, 2024 12:30 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Plugin-Trace Reactivation
PostPosted: Thu Jun 06, 2019 10:47 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Autor: Lloyd Konneker (bootch nc.rr.com)
Data: 2009
In menu Gimp: Filters -> Edge-Detect -> Trace...

More interesting information can be found in the readme-plugin-trace.txt file

After reading a very interesting topic:
Paint Paths in Steps plug-in
http://gimpchat.com/viewtopic.php?f=9&t=17482
I remembered Plugin-trace.py - I've never managed to run it in Windows.

Now I know that this is due to the type of files supported by autotrace (it does not support png files - I do not know if this is a bug or a change in autotrace) and a few spaces...

Download and install autotrace - anywhere but autotrace and gimp must be on one disk:
https://github.com/autotrace/autotrace/releases


The temporary file is saved interactively - and important (the problem of autotrace or my older version of the 32bit file that supports Win Vista):

In Compatibility Options
Select Do not write color space information.

I do not know if it will work for Linux - so I invite You to Test...

Edit: I'm sorry - the old attachment was incomplete


Attachments:
plugin-trace-V 0.2.zip [9.78 KiB]
Downloaded 325 times
Python plugi-trace.png
Python plugi-trace.png [ 241.49 KiB | Viewed 10444 times ]
Not option in pdb - run interactive.png
Not option in pdb - run interactive.png [ 391.71 KiB | Viewed 10444 times ]

_________________
Image

Slava
Ukraini!


Last edited by MareroQ on Fri Jun 07, 2019 9:41 am, edited 1 time 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: Plugin-Trace Reactivation
PostPosted: Thu Jun 06, 2019 10:41 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Don't believe Autotrace works in Win10; does in WinXP. Potrace work in all OSs. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Fri Jun 07, 2019 1:58 am  (#3) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2424
There is an updated version, Autotrace 0.4 that is now maintained. It does work in Windows 10 (certainly 64 bit, have not tried 32 bit)

see: viewtopic.php?f=9&t=17482&start=30#p240202

The problem with potrace is no center-line trace but it is better in certain circumstances

@MareroQ

That zip seems to contain just two versions of the Readme, no version 0.2
I have the archived v. 0.1 but no trace of 0.2 Can you check your zip file.

I have used autotrace on CL for years, the issue with png headers is a pain, so can bmp files having to set the no color information. pnm (RAW) also works.

_________________
Image


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Fri Jun 07, 2019 7:05 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Thanks for the info, Rich. Glad they are supporting it once again and cool that it's now available in 64-bit. I've not kept up with Autotrace since it no longer supported in Win10 (not remember if it even worked in Win8.1; lol). I have it in my WinXP VM and use it sparingly. Just downloaded and installed it. Will test it out soon. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Fri Jun 07, 2019 7:26 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
OK; only seems to work with BMP files (no PNG support) but does work. Haven't tried JPG yet (but will soon) but I see no libraries in the directory like the old Autotrace. Wonder where I can get said libraries that support all the graphic options that the old version does (old meaning 32 bit)? :)

edit:

Doesn't work for jpegs either. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Fri Jun 07, 2019 9:43 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Hi Lylejk
From the description of the function
input-format: TGA, PBM, PNM, PGM, PPM or BMP.

Hi Rich2005
I apologize for the wrong attachment - I changed in post # 1.
I added the option save the temporary file as PPM (but without the alpha channel - so the plugin flattens the layer)

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Fri Jun 07, 2019 12:04 pm  (#7) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2424
That is pretty good.

Never going to replace expensive commercial applications (which originated from autotrace in the first place ;) think vector-magick @ $10 a month)

Using Linux: Into multi-window mode for examples:

1. Typical centerline trace of a jpg (which would have been a vector originally)

Image

This is actually very good. A nice clean path.

2. One of the often asked questions. A small logo - make it larger without blurring. The usual answer is make a svg using Inkscape. Possibilities here, although autotrace never was good with text, so lose that. I do know the limitations of autotrace but might save a bit of hand tracing with the path tool.

Image

For linux users, temporary files, including svg's are in /usr/tmp/gimp/2.10 Keep an eye on that, fills up quickly.

_________________
Image


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Sat Jun 08, 2019 8:40 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Hi Rich2005

Thank You for the test and comments.
If You time - can You make a small video-presentation? :roll:

Ver 0.3

Some minor changes:
1.Add output directory to save temp file,
2.Replace "Smoothing" (PF_OPTION) to "Corner-threshold" (PF_SPINNER)
3.Changed descriptions...


Attachments:
New in v3.png
New in v3.png [ 437.61 KiB | Viewed 10244 times ]
plugin-trace-V 0.3.zip [9.29 KiB]
Downloaded 264 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Sat Jun 08, 2019 10:18 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Sweeeeeeet, thank you MareroQ :jumpclap
Seems to work okay, only ran a quick test so far.

Image


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Sat Jun 15, 2019 1:23 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
To say goodbye to this topic.

Ver. 0.4

-resignation from the selection of directories ["Autotrace executable file" and "Output directory to save temp file"] to eliminate the problem of spaces in the names
(which autotrace does not tolerate). Requires (for Windows) copying the autotrace.exe file to the bin Gimp directory.
A location was set for Linux: "/usr/bin/autotrace". You can edit in line 185.
-add options: "Path visible?": Yes/No
-the rendered image(layer and path) is named as the source layer (accepts spaces - because the name is given after the autotrace has finished)


Attachments:
v4.png
v4.png [ 271.9 KiB | Viewed 10070 times ]
plugin-trace-V 0.4.zip [9.03 KiB]
Downloaded 309 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Wed Aug 28, 2019 4:13 pm  (#11) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
MareroQ, I cannot get Trace to work. I have Win 10, 64 bit, Gimp 2.10.12. I put Autotrace.exe in the Gimp portable bin folder and the Trace in preferences plug in folder. I tried to make outline of a black silhouette and centerlines of a simple design but could not get either. Must be using wrong settings? Suggestions?
Here are the errors that I get:
Attachment:
Capture.JPG
Capture.JPG [ 38.31 KiB | Viewed 3820 times ]


Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Wed Aug 28, 2019 10:00 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Hi Pat.

For the purposes of the test:
- in Edit -> Preferences -> Folders, change the default location of the temporary folder to a suitable one for portable:
i.e. for example d:\Gimp-2.10.12_Portable-64bit-Win-V2\Preferences\tmp\
- Gimp restart
- use Trace (Delete temp-file? No, Create paths: One, Merged) twice with the option:
1. Save layer to a temp-file as: BMP
2. Save layer to a temp-file as: PPM

Check the Preferences/tmp directory and let me know what gimp-temp files have been created?


Attachments:
Locationn temporary folder.png
Locationn temporary folder.png [ 51.36 KiB | Viewed 3809 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Plugin-Trace Reactivation
PostPosted: Thu Aug 29, 2019 12:59 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Just testing on Win10 64bit, Gimp 2.10.12 from Gimp.org. No problems.
The autotrace.exe I dropped in C:/Program Files/GIMP 2/bin, is the one rich has uploaded to be used with Inkscape centerline extension.

viewtopic.php?f=9&t=17482&start=30#p240202

I tried to install Autotrace 0.40 first from github, but it gives virus warning.

Image


Top
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts How To Get Rid of This 'extra' Trace of Text?

16

No new posts Attachment(s) Fractal Trace - Big Preview for Gimp-2.10.20

0

No new posts Attachment(s) [solved] Filters / Render / Fractal trace / Flames

4

No new posts Attachment(s) Baby's first GEGL plugin - a very basic GEGL plugin anyone can make.

9

No new posts Can't get plugin to appear (mostly)

3



* Login  



Powered by phpBB3 © phpBB Group