Image - an image processing library based upon Vix

I’ve published Image version 0.33.0 with the following breaking changes:

Breaking Changes

  • Image.dhash/1 now returns a 64-bit hash rather than a 512-bit hash. The original algorithm is intended to return a 64-bit hash so this is both a breaking change and bug fix.

  • Fix generation of images from text when autofit: false (the default). In these cases the text image is generated from SVG. The original implementation operated on the basis that the image would be generated with a height and width necessary to contain the text of a given font size. The result is not consistent and is influenced by whether the text has ascenders or desenders. The new implementation creates an SVG container of a size large enough to contain the text at the given font-size and then trims away the background to produce the final result. Thanks to @ilesar for the report. Closes #86. As a result of this fix, existing text-generated images may not now be the same as previous releases.

I apologise especially for the breaking changes in text image generation but the previous approach was delivering unpredictable - and usually inconsistent - results.

7 Likes