• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Any way to read image properties without reading image?

Started by mikeyvamp, 6 March 2010, 21:53:17

Previous topic - Next topic

mikeyvamp

Surely there must be a way to read image properties like width, height, bits-per-pixel, compression-type, etc. without reading in the entire image, right?  Only way I can find to do it is use loadimagefromfile on a TimageData type, but that loads the entire image.  I'm probably missing it but I don't see it in the docs.  Is there any way to read image parameters without loading the (potentially very large) image?

Mike

Galfar

Imaging only loads whole images. For many file formats it's easy but there are some that must be read entirely. Which formats are you interested in?


mikeyvamp

Quote from: Galfar on 12 March 2010, 18:20:48
Imaging only loads whole images. For many file formats it's easy but there are some that must be read entirely. Which formats are you interested in?


All of them.  Main ones are TIFF, JPEG, PNG, PSD, BMP, TGA.  I have a 7 year old graphicex component that can read properties on all those formats without reading the image data.  Seems like a pretty basic need.

Mike

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name:
Email:

Shortcuts: ALT+S save/post or ALT+P preview

SMF spam blocked by CleanTalk