Vampyre Imaging Library Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Imaging 0.26.4 Released!

Author Topic: Any way to read image properties without reading image?  (Read 211 times)

mikeyvamp

  • Imaging User
  • *
  • Offline Offline
  • Posts: 2
    • View Profile

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
Logged

Galfar

  • Administrator
  • Imaging User
  • *****
  • Offline Offline
  • Posts: 249
    • ICQ Messenger - 327174200
    • View Profile
    • Galfar's Homepage
    • Email
Re: Any way to read image properties without reading image?
« Reply #1 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?

Logged

mikeyvamp

  • Imaging User
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
Re: Any way to read image properties without reading image?
« Reply #2 on: 13 March 2010, 00:28:55 »

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
Logged
 

Page created in 0.072 seconds with 18 queries.