May 26, 2012; 14:55
Daniel Parker
L9 Image issue?
Mac OS X 10.7.4 Lasso 9.1.5 (also tested on Linux 9.1.5)
I'm trying to grab an image form a local directory, and store it as a variable for manipulation. In the example below, I'm just writing it back out to disk with a different name:
[
var('myimg') = image('/images/logo.jpg');
$myimg -> save ('/test.jpg');
]
The result is a jpg written with a size of 0 bytes.
[
var('myimg') = image('/images/logo.gif');
$myimg -> save ('/test.gif');
]
The result is a gif with the correct dimensions written, but no image.
[
var('myimg') = image('/images/logo.png');
$myimg -> save ('/test.png');
]
The result is a png written that has the dimensions, but is garbage (black with coloured lines in it)
I dont seam to be having any permissions issues (otherwise if it was happening on the read, I wouldnt be getting the image dimensions), and a file is being written.
Does anyone have any suggestions please?
Daniel Parker
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>