Retrive image type, width and height of png, jpg, gif using nabiro

With these few lines of code you can easly retrive type and size of an image
var imageInfo:ImageInfo = new ImageInfo(myByteArray);
imageInfo.extractType();
imageInfo.extractSize();
trace(imageInfo.type.toString());
trace(imageInfo.width.toString());
trace(imageInfo.height.toString());

Comments on this post

Post a comment

Embed any code between [code] [/code] tags
captcha image   Reload