Export SVG as PNG?

jonathandlynch at gmail.com jonathandlynch at gmail.com
Wed Jul 19 16:59:45 EDT 2017


If you have a complex svg that needs a browser to display it, you can do this through JavaScript.

On LiveCode Share, the SVG- powered images stack does this.

Sent from my iPhone

> On Jul 19, 2017, at 11:47 AM, Richmond Mathewson via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I would simplfy that to:
> 
> export snapshot of widget "XXX" to file "XXX.png" as PNG
> 
> no need to mess around with "the rect of".
> 
> Richmond.
> 
>> On 7/19/17 6:44 pm, Ali Lloyd via use-livecode wrote:
>> export snapshot from rect (the rect of widget 1) of widget 1 to file (
>> specialfolderpath("desktop") & "/test.png") as png
>> 
>> 
>> The 'of widget 1' part is the important part - that takes the object in
>> isolation rather than snapshotting the background of the card.
>> 
>> On Wed, Jul 19, 2017 at 4:36 PM Dan Friedman via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>> 
>>> Hello!   Is it possible to export a svg widget to a png and retain the
>>> transparency?  If so, how would you go about doing that?
>>> 
>>> Thanks!
>>> -Dan
>>> 
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode at lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list