Build GraphicsMagick with quantum-depth 16 by default #46101
Comments
Don't have a problem with the default being changed personally. |
Does b78da5c looks acceptable then? |
Oh, actually, looking at the formula it looks like there is no default currently? if build.with? "quantum-depth-32"
quantum_depth = 32
elsif build.with? "quantum-depth-16"
quantum_depth = 16
elsif build.with? "quantum-depth-8"
quantum_depth = 8
end
args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth From that, unless people are passing options already, there shouldn't be a arg about quantum depth being passed. Are you seeing something different locally? |
Unless |
Yes, |
Huh. The formula wording implies there's no default there, but the old wording does acknowledge the default of diff --git a/Library/Formula/graphicsmagick.rb b/Library/Formula/graphicsmagick.rb
index b3bf7c7..03193e8 100644
--- a/Library/Formula/graphicsmagick.rb
+++ b/Library/Formula/graphicsmagick.rb
@@ -12,7 +12,7 @@ class Graphicsmagick < Formula
end
option "with-quantum-depth-8", "Compile with a quantum depth of 8 bit"
- option "with-quantum-depth-16", "Compile with a quantum depth of 16 bit"
+ option "with-quantum-depth-16", "Compile with a quantum depth of 16 bit (default)"
option "with-quantum-depth-32", "Compile with a quantum depth of 32 bit"
option "without-magick-plus-plus", "disable build/install of Magick++"
option "without-svg", "Compile without svg support"
@@ -60,13 +60,13 @@ class Graphicsmagick < Formula
if build.with? "quantum-depth-32"
quantum_depth = 32
- elsif build.with? "quantum-depth-16"
- quantum_depth = 16
elsif build.with? "quantum-depth-8"
quantum_depth = 8
+ else
+ quantum_depth = 16
end
- args << "--with-quantum-depth=#{quantum_depth}" if quantum_depth
+ args << "--with-quantum-depth=#{quantum_depth}"
args << "--without-x" if build.without? "x11"
args << "--without-ttf" if build.without? "freetype"
args << "--without-xml" if build.without? "svg" @MikeMcQuaid wrote the current wording on quantum depth though, so would be cool if he'd sign off on changing the language. |
I'm confused. That's the same I wrote above (see b78da5c). Did you paste the wrong diff? |
They are slightly different. You left in the |
Because it was placed in the middle of comments on the wording about a default option, I thought the issue was the change of the option help text.. To explain the reasoning behind leaving the |
Feel free to file a PR to make the change. I'll ping Mike on it for review if he doesn't see it himself. Thanks! |
The default configure option to build GraphicsMagick is quantum depth 8. This limits GraphicsMagick to always read images with that bitdepth. This can be quite limiting since GraphicsMagick is then used by scientific applications where 16bit images are very common.
There is a very long discussion on a debian bug report #557879 about the subject. I will only quote one the comments by Bob Friesenhahn, the maintainer of GraphicsMagick:
Can the default in homebrew be changed? I can submit a patch but need to know first if that's not a problem.
The text was updated successfully, but these errors were encountered: