Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 124
Registered: ‎01-29-2011
My Device: Z10, PlayBook
My Carrier: Koodo
Accepted Solution

Read image EXIF info?

My guess is the answer is no and I'll have to find a library or something, but...

 

Is there some way to read the EXIF info out of a JPEG image in Cascades or Qt? I just want to be able to check the rotation flag so I don't end up displaying a photo on its side.

 

So far I assume I'll be going with http://libexif.sourceforge.net. The library is 1.5MB on my linux box... was just hoping to avoid adding that to my applications size.

Developer
Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Re: Read image EXIF info?

Take a look at the built-in libraries on this page.

 

Just add it to your project by right clicking on your project -> Configure... -> Add Library. Select Standard BlackBerry Platform Library and you will find Exif in the Image Manipulation category. Be sure the follow the instructions in the cheat sheet!

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 124
Registered: ‎01-29-2011
My Device: Z10, PlayBook
My Carrier: Koodo

Re: Read image EXIF info?

Nice, thanks.

 

...and now I know if I'm using the search box on the documentation page to try both Cascades and Native -- it doesn't search across all libraries/docs, apparently, and I only searched in the Cascades section.

Developer
Posts: 1,600
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido

Re: Read image EXIF info?


zezke wrote:

Take a look at the built-in libraries on this page.

 

Just add it to your project by right clicking on your project -> Configure... -> Add Library. Select Standard BlackBerry Platform Library and you will find Exif in the Image Manipulation category. Be sure the follow the instructions in the cheat sheet!


i'm confused.  which library do you download?

Developer
Posts: 124
Registered: ‎01-29-2011
My Device: Z10, PlayBook
My Carrier: Koodo

Re: Read image EXIF info?


smiley wrote:

zezke wrote:

Take a look at the built-in libraries on this page.

 

Just add it to your project by right clicking on your project -> Configure... -> Add Library. Select Standard BlackBerry Platform Library and you will find Exif in the Image Manipulation category. Be sure the follow the instructions in the cheat sheet!


i'm confused.  which library do you download?


None. #include <libexif/exif-data.h> in the C/C++ file and LIBS += -lexif in your .pro file.