Reduce the size of the final built file

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
alanchcw
Posts: 7
Joined: 2019-09-29T02:11:05-07:00
Authentication code: 1152

Reduce the size of the final built file

Post by alanchcw » 2019-10-15T16:30:27-07:00

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

Post Reply