Page 1 of 1

Reduce the size of the final built file

Posted: 2019-10-15T23:30:27+00:00
by alanchcw
Hi,

Currently I am using MagickWand to create a DLL which can convert image files from one format to anther.

Therefore, all functions I use is just as below:

MagickWandGenesis
NewMagickWand
MagickReadImage
MagickWriteImage
DestroyMagickWand
MagickWandTerminus

Now I build ImageMagick as a static library(MT settings). My DLL is then built with ImageMagick, MFC and CRT all statically to prevent deliver other dependency DLLs. However, the problem is that the final built DLL is more than 13MB, rather large.

Is it possible to reduce the size of the final DLL since my DLL does not use any image manipluation functions at all.

Thanks