Lots of you have been asking about Scorpio’s planned
Scorpio has two new functions, GetReadableImageFormats() returns a list of the supported readable image formats, and GetWriteableImageFormats() returns a list of supported writable formats. The following code snippet shows all supported formats:
Readable (#ListLen(r)#): #r#
Writeable (#ListLen(w)#): #w#
Running this code (in Beta 2, remember, this can/may still change) displays the following:
Readable (15): BMP,GIF,JFIF,JPEG,JPEG 2000,JPEG-LOSSLESS,JPEG-LS,JPEG2000,JPG,PNG,PNM,RAW,TIF,TIFF,WBMP
Writeable (15): BMP,GIF,JFIF,JPEG,JPEG 2000,JPEG-LOSSLESS,JPEG-LS,JPEG2000,JPG,PNG,PNM,RAW,TIF,TIFF,WBMP
And so, yes, GIF and PNG are both supported (both read and write).
Great stuff, will we be able to upload an image into memory? This is probably the most important to my company!
Thanks,
Alex
<cfimage source="…" name="foo"> loads an image into a variable and then you can manipulate it as needed.
— Ben
Thanks for your fast response. That is a feature we are already using extremely a lot, couldnt get much better, but i guess my concern is being able to actually upload from the computers hard drive into memory. There are some asp tags that do this, but we are 100% coldfusion supporters/investors!
Thanks,
Alex
Will the tag preserve animation on a gif? Or will it only keep the first frame?