cplusplus.com
C++ : Forum : UNIX/Linux Programming : Getting image width and height
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post Getting image width and height

xcoder (9)
Hello.

Does anybody know how to get image width and height in c++ on linux machine?

Thanks

Sorry for my bad english.
Duoas (5985)
Your English is perfect. Don't apologize for doing your best. Many of us here speak several different languages and empathize.

As for your question, it depends entirely on the image file format. Getting the dimensions of a GIF will be done entirely differently than for a PNG, etc.

You might want to check out ImageMagick, a free-to-use library that understands a zillion image formats. It is available for all major operating systems.
http://www.imagemagick.org/

Hope this helps.
xcoder (9)
Hi.

Thanks, i haven't found my answer yet, but still, you answered some of my other questions, like resizing, water marking etc.

Best regards
xcoder (9)
Sorry for my previous post, i just found my answer, if you are interested then it's called Magick++ based on imagemagick, if i understood correctly, then it is a lib.

Thanks.
Last edited on
Topic archived. No new replies allowed.