Lots of you have been asking about Scorpio's planned <CFIMAGE> tag, wanting to know what image formats will be supported (many of you asking about GIF and PNG specifically). So, as long as you keep in mind that Scorpio is a work-in-progress and that features and specs can change ...
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:
<cfset r=GetReadableImageFormats()>
<cfset w=GetWriteableImageFormats()>
<cfoutput>
Readable (#ListLen(r)#): #r#<br>
Writeable (#ListLen(w)#): #w#<br>
</cfoutput>
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).
There are no comments for this entry.
[Add Comment]