Open matteosecli opened 2 months ago
I think it would be a good idea to issue a PR with the desired changes, then maintainers can decide whether or not to accept the changes.
--with-quantum-depth=16 --enable-shared --disable-static --with-magick-plus-plus=yes
Thanks for https://github.com/conda-forge/graphicsmagick-feedstock/pull/35, @ngam!
Solution to issue cannot be found in the documentation.
Issue
As currently compiled, this library can only process 8-bit images. This causes issues with several programs that make use of the library, such as Krita (see bug report), Octave (see docs), etc.
The library should be built with the option
--with-quantum-depth=16
. It's also possible to produce multiple co-existing variants with different quantum depths with the additional option--enable-quantum-library-names
(but you can use only one at a time).Major distributions and package managers have long been building 16-bit versions. I surveyed a few below:
--with-quantum-depth=16
(see recipe)--with-quantum-depth=16 --enable-quantum-library-names
(see bug report, recipe, and packages)--with-quantum-depth=16 --enable-quantum-library-names
(see bug report, recipe, and packages)--with-quantum-depth=16 --enable-quantum-library-names
(see bug report, recipe, and packages)I confirmed the issue with this package on MacOS (Apple Silicon) by building
octave
against it and trying to open a photo taken with a smartphone. I obtainedI can open a PR with the necessary change in build.sh if that looks good to you.
Installed packages
Environment info