Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - image library: how to learn image width and height before loading full image?: Page 1 of 3 (3 Items)
   
image library: how to learn image width and height before loading full image?  
Our application needs to handle both small and large images
on a system with limited memory.

We understand that we can use img_load_resize_file()
to load a subsampled version of the image while using
bounded memory.

But our requirements demand that we either use img_load_resiize()
or img_load_file(), depending on the original width and height
of the image.

Is there a way to determine the properties of the image
(at least width and height), without actually loading the
image, using the QNX image library?  (We cannot load the
image as it may need more memory than available).

Thanks,

Mate