I was working on QR barcode using Zxing and the barcode generated by Zxing tend to give extra white spaces on some barcodes but my designer wanted trimmed image without extra white space around. ColdFusion does not have an image trim function, so I put together a small function to trim background of an image. This function takes two arguments. ImageĀ (required) This can take ColdFusion image object or path to an image file.
(more..)