samt/barcode

have a config to use imageMagick

tony1223 opened this issue · 1 comments

I can't use gm in my environment, but I install imageMagick instead.

in the document says we could use the code to change the gm implement.

http://aheckmann.github.io/gm/docs.html#imagemagick
var imageMagick = gm.subClass({ imageMagick: true });

I have to change the code in lib folder manually, could we have a config to setup this ?

samt commented

This is being changed very soon, actually. You will be able to specify a renderer which decouples the image generation from pattern generation and you can just pass in a prepared GM or IM object to a renderer.