My project is to batch resize a big number (30000) of small jpeg images (400*300) to 15 different destination sizes (which are smaller than the source).
I first created a multi-threded command line tool based on CImg and libjpg to batch process the images. And is worked as a charm on my 4*2 cores Ubuntu notepad (20 minutes).
Now the client wants a GUI for the tool, with progress bars, estimated time, previews, ... and so on! And want it to work on Windows too. He wants a sort of image manager.
I started porting the pure C++ command line to Qt and its QImage class (QtConcurrent::run for multi-threading), and here the problem : On the same machine it runs 3 times slower on Windows 7 x64 (about 50 minutes)!
So how to use Qt for reading images and CImg for resizeing them? And will it run faster?