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
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?
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