[SOLVED] Recommend a simple png-supporting image library
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hello, I want to build a simple OCR program and I was wondering what library to use. The images are saved on my hdd as colour .png files, i won't be using any effects on them but I will be working with pixels a lot, so direct access to them would really be great.
So I was curious if there's a lib that provides direct access to individual pixels and pretty much nothing else (libpng, devIL or QImage from qt are all good but each has it's downfalls).
I don't know if the library classifies as ''simple'', but did you have a look at GIL from Adobe? It can read png files and you may access single pixels... However, there is a lot more included in that library, so I don't know if it fits your needs.
Hello, I want to build a simple OCR program and I was wondering what library to use. The images are saved on my hdd as colour .png files, i won't be using any effects on them but I will be working with pixels a lot, so direct access to them would really be great.
So I was curious if there's a lib that provides direct access to individual pixels and pretty much nothing else (libpng, devIL or QImage from qt are all good but each has it's downfalls).
You should explain what exactly you didn't like about libraries you listed. QImage, for example, is pretty decent and allows manipulation of individual pixels. There's also SDL_image, but it is supposed to be used in SDL applications only.
thank you for your replies!
After searching a bit a decided to settle with imagemagick.
and as for the other libraries, it's just a personal thing:
libpng has a pretty hard-to-work-with API, so png++ would've be better since I was going to build a wrapper for libpng anyway
QImage, required QT and I don't think it would've been the best decision to add libqt as a dep for just it's image library
devIL was my second choice after png++ but even though it has an easier API, it's still in C from what I saw, so again I would've needed to build a wrapper (not that I don't like C or anything, it's just I feel like code is more organized when you use OOP)
PS: I don't have anything against any library, but I wanted something simple for my first image-manipulation program
cheers!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.