It all started when I needed to port a small code written in Image Magick/C++ [working in FC5] need to be ported to FC2 {Fedora Core 2}. With the difference in the version of the Magick++ library, I could not even compile it. It was a web based project, so I tried to write it in PHP and the size of the images are some what bigj around the order of 3000×2000 pixels. In PHP we needed to allocate memory seperately . We needed to set around 100MB . If 4 or more instances of the program runs, think, how your machine will be doing ? { If its a server it would do fine }. So, the last alternative, Qt, THE Qt ( from trolltech ). With Qt, the problem was solved in minutes.
In PHP you set the memory limit by
ini_set ( 'memory_limit' , '15M' ) ;
In Qt-3, if you wanna do some image manipulation the format will be something similar.
#include <qappliction.h> #include <qimage.h> int main ( int argc , char* argv[ ] ) { QImage srcimg("source.jpg"); QImage dest; // Do operations on srcimg and save to dest dest.save("destimg.jpg","JPG"); }
and you are done. Qt is the best . A lucid reason is because of how the documentation is made and kept.
An intresting site to check out » http://labs.trolltech.com/blogs/