I am trying to save an image to a file e.g.
export snapshot from group "Caption" to image "image" as GIF [this is combining a text field and an image and appears OK on screen]
put image "image" into URL ("file:pic.gif")
But does not read from the file in Windows.
I've tried png, jpg but the file cannot be be read via Windows 7. The gif opens but also appears incorrectly.
Saving an image from a group snapshot to a file
Moderators: LCNeil, heatherlaine, kevinmiller, elanorb
-
- Posts: 192
- Joined: Tue Mar 11, 2014 12:57 pm
Re: Saving an image from a group snapshot to a file
Hi newtronsols,
When writing an image to file you should use "binfile" and not "file". File is primarily used when working with text files.
The following is taken from the URL entry o the LiveCode dictionary-
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
——
When writing an image to file you should use "binfile" and not "file". File is primarily used when working with text files.
Code: Select all
put image "image" into URL ("binfile:pic.gif")
Kind Regards,file: a text file on the local disk (not on a server)
binfile: a binary file
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
——