Need help to make my program smaller
Posted: 2009-06-14T10:03:23-07:00
Hi,
I wanted to use the Image and blob class in Magick++ for resizing and converting of PNG files to JPEG. These are the only functions i needed. I am doing so as i wanted the program to be small. I do not need the other functions. Right now, the dlls required are 2MB. I suppose there are a lot of unused functions being stored in the dll too.
I have tried removing the unneeded classes from MagickCore but doing so seems very complicated as there are alot of dependancies.
I also tried to use static libraries, hoping that it will extract only the required functions and build it into the executable, but i have not been successful so far.
Any comments on how i should go about doing it? I have been researching on it for 1 weeks already. Hope some one can enlighten me. Thanks
Regards
gnaiqiz
I wanted to use the Image and blob class in Magick++ for resizing and converting of PNG files to JPEG. These are the only functions i needed. I am doing so as i wanted the program to be small. I do not need the other functions. Right now, the dlls required are 2MB. I suppose there are a lot of unused functions being stored in the dll too.
I have tried removing the unneeded classes from MagickCore but doing so seems very complicated as there are alot of dependancies.
I also tried to use static libraries, hoping that it will extract only the required functions and build it into the executable, but i have not been successful so far.
Any comments on how i should go about doing it? I have been researching on it for 1 weeks already. Hope some one can enlighten me. Thanks
Regards
gnaiqiz