SVGs can now be Imported As Control

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4395
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

SVGs can now be Imported As Control

Post by richmond62 » Wed Feb 27, 2019 3:52 pm

Oh, Gosh, Gosh, Gosh they can.

I got "all excited" and was rolling in the ashes until I tried it:
-
Screenshot 2019-02-27 at 16.47.14.png
-
and then sobered up a bit:

1. the imported image is NOT a scaleable vector object.

2. My example, at least, went wonky.

one can, at least, sidestep the bother of converting SVG images into
PNG format.

sphere
Posts: 1027
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: SVGs can now be Imported As Control

Post by sphere » Wed Feb 27, 2019 9:14 pm

if i open your svg file from your zip in the bug database in Inkscape i get to see this:
Knipsel.PNG
Knipsel.PNG (11.3 KiB) Viewed 2073 times
So i wonder where the fault may be, in the svg source or in LC
https://www.jj-s.nl
https://www.multifoodshop.nl
--------------------------------------
1 Check and search the LiveCode User Guide.pdf
2 Check and search the Dictionary
3 Check and search this forum
4 Ask on this forum
5 Ask on the List
6 Help others too

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 4395
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: SVGs can now be Imported As Control

Post by richmond62 » Wed Feb 27, 2019 10:11 pm

That SVG was converted from an EPS file with Adobe Illustrator.

The EPS file was, ironically perhaps, exported from Inkscape:
which now refuses to import it.

sphere
Posts: 1027
Joined: Sat Sep 27, 2014 10:32 am
Location: Earth, Except when i Jump

Re: SVGs can now be Imported As Control

Post by sphere » Wed Feb 27, 2019 10:25 pm

Probably something in that conversion goes wrong i guess.

I have a simple png file with color imported in inkscape and saved as svg, which loads correct in LC.
https://www.jj-s.nl
https://www.multifoodshop.nl
--------------------------------------
1 Check and search the LiveCode User Guide.pdf
2 Check and search the Dictionary
3 Check and search this forum
4 Ask on this forum
5 Ask on the List
6 Help others too

Post Reply

Return to “Feature Proposals”