On 2/25/07, Michael E. Carluen <[EMAIL PROTECTED]> wrote:

>
> I am currently using Rick's ImageCFC. Using the getImageInfo method, it
> returns a numeric equivalent to jpg (5) or gif(13).  I noticed that the
> CFC
> uses the standard getType() method. Does anyone know where I can lookup
> the
> numeric equivalents of all other graphic file formats?



 You can find the list of constant values returned by the BufferedImage
getType() method here:

http://java.sun.com/j2se/1.4.2/docs/api/constant-values.html#java.awt.image.BufferedImage.TYPE_3BYTE_BGR

Descriptions are here:

http://java.sun.com/j2se/1.4.2/docs/api/java/awt/image/BufferedImage.html#field_summary

Most all of this stuff is over my head =)

I can say that the image type is *NOT* necessarily related to the image
format (jpeg, gif)...  type 13, for example, is indexed color.  GIF images
are not the only images that use this format - however all GIF images are
indexed color.

type 5 is most typical for JPG images (3 byte BGR), but some JPEG images -
particularly those with embedded color profiles, end up being TYPE_CUSTOM
(0) and imageCFC can't handle them.

Rick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Macromedia ColdFusion MX7
Upgrade to MX7 & experience time-saving features, more productivity.
http://www.adobe.com/products/coldfusion

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270661
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to