Re: [Gimp-user] Need SVG Path Export

2019-10-28 Thread Ofnuts

On 10/28/19 5:41 AM, gimppimp wrote:

Hello,

I have created an svg from a png using Adobe Illustrator and the svg shows up in
firefox, I then load the SVG up in Gimp and then:

Select >> All
Select >> To Path

Then I right click Path Selection and export Path and when I place the path into
javascript the image shows up as a black square and not the original png image
as created in as svg, how do I get the svg path to show up as the full image not
just a black square?


"Select>All" selects the whole image (a 99x107px image?)

"Select>To path" then generates a rectangle path that encompasses the
whole image

___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] Need SVG Path Export

2019-10-28 Thread rich404
>Hello,
>
>I have created an svg from a png using Adobe Illustrator and the svg
>shows up in
>firefox, I then load the SVG up in Gimp and then:
>
>Select >> All
>Select >> To Path
>
>Then I right click Path Selection and export Path and when I place the
>path into
>javascript the image shows up as a black square and not the original
>png image
>as created in as svg, how do I get the svg path to show up as the full
>image not
>just a black square?

I wonder how you did that? Did you trace it with the pen tool in Illustrator?

Chances are the svg contains a  polyline (an object) rather than a path. Open
the SVG in an editor, should tell you. If that is the case you can convert the
object to a path in Inkscape.  example attached.

Another indicator is opening the svg in Gimp, tick the Import paths and no paths
in the paths dialogue. You can also import a path from an svg from the path
dialogue, no path? Complain to Adobe.

As previous post, no good using selection -> selection to path which will give
an outline. You might actually have the whole canvas selected.  If that is the
way you want to go, you need a center-line trace. You can do that in Inkscape
providing you have Autotrace installed.

There is a plugin for Gimp that works with simple images see:
https://gimpchat.com/viewtopic.php?f=9=17485 Also need Autotrace.

Attachments:
* https://www.gimpusers.com/system/attachments/1278/original/convert-to-path.jpg
* https://www.gimpusers.com/system/attachments/1279/original/import-path.jpg

-- 
rich404 (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


Re: [Gimp-user] Need SVG Path Export

2019-10-27 Thread Liam R E Quin
On Mon, 2019-10-28 at 05:41 +0100, gimppimp wrote:
> Hello,
> 
> I have created an svg from a png using Adobe Illustrator and the svg
> shows up in firefox, I then load the SVG up in Gimp and then:
> 
> Select >> All
> Select >> To Path

I don't think this does what you think it does. It converts the shape
of the selection to a path.

GIMP is a BITMAP editor. When you select all, you are selecting the
rectangular area around the bitmap. You might see lines and shapes from
teh SVG diagram, but they are not lines and shapes: they are pictures
of lines and shapes made from coloured pixels.

One you have opened it in GIMP it is no longer SVG.

So, the path you are making is a rectagle.

What exactly are you trying to do? Your steps don't make sense to me.
Are you hoping to trace a bitmap image that's inside an SVG image, and
to covert that traced path to a new SVG path? If so, Inkscape can do
this, but not GIMP (GIMP is more like PhotoShop than Illustrator).

Liam (slave ankh)

-- 
Liam Quin - web slave for https://www.fromoldbooks.org/
with fabulous vintage art and fascinating texts to read.
Click here to have the slave rewarded with more work.

___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] Need SVG Path Export

2019-10-27 Thread gimppimp
>Hello,
>
>I have created an svg from a png using Adobe Illustrator and the svg
>shows up in
>firefox, I then load the SVG up in Gimp and then:
>
>Select >> All
>Select >> To Path
>
>Then I right click Path Selection and export Path and when I place the
>path into
>javascript the image shows up as a black square and not the original
>png image
>as created in as svg, how do I get the svg path to show up as the full
>image not
>just a black square?


Here is the path I get from Gimp 

M 0.00,0.00
   C 0.00,0.00 0.00,99.00 0.00,99.00
 0.00,99.00 107.00,99.00 107.00,99.00
 107.00,99.00 107.00,0.00 107.00,0.00
 107.00,0.00 0.00,0.00 0.00,0.00 Z

this path shows up as nothing

-- 
gimppimp (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list


[Gimp-user] Need SVG Path Export

2019-10-27 Thread gimppimp
Hello,

I have created an svg from a png using Adobe Illustrator and the svg shows up in
firefox, I then load the SVG up in Gimp and then:

Select >> All
Select >> To Path

Then I right click Path Selection and export Path and when I place the path into
javascript the image shows up as a black square and not the original png image
as created in as svg, how do I get the svg path to show up as the full image not
just a black square?

-- 
gimppimp (via www.gimpusers.com/forums)
___
gimp-user-list mailing list
List address:gimp-user-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
List archives:   https://mail.gnome.org/archives/gimp-user-list