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, robinmiller, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3639
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: 931
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 965 times
So i wonder where the fault may be, in the svg source or in LC
2018 Worldwide Mobile Market share: Android 84.4% !!!, iOs 15.1%, others 0.1%

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3639
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: 931
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.
2018 Worldwide Mobile Market share: Android 84.4% !!!, iOs 15.1%, others 0.1%

Post Reply

Return to “Feature Requests”