[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49653] Build failure with ImageMagick
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #49653] Build failure with ImageMagick |
Date: |
Thu, 11 Nov 2021 05:11:45 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 Edg/95.0.1020.44 |
Follow-up Comment #15, bug #49653 (project octave):
IIUC, Magick::Quantum is supposed to be an integer type:
http://www.graphicsmagick.org/Magick++/Color.html
https://www.imagemagick.org/Magick++/Quantum.html
It might make sense to explicitly cast the floating point arguments to
(Magick::Quantum) in __magick_read__.cc. It's strange though that it seems
like the compiler implicitly casts to the correct type when compiling with
GraphicksMagick. But it doesn't look like this is happening when you are
compiling with ImageMagick...
Maybe your ImageMagick library was compiled with a quantum depth of 16 and
GraphicsMagick with 8? The compiler might shy from the implicit cast because
the mantissa of a float value isn't large enough for the target integer type?
However, I cannot find anywhere in our code where we call Magick::Color with
float arguments. Unless I'm missing something, we seem to call it with double
arguments everywhere...
Anyway, an explicit cast to the integer type would maybe also make it clearer
to a programmer what is going on in that part of the code.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?49653>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/10
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick,
Markus Mützel <=
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/11
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/11
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/12
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/12
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/12
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, John W. Eaton, 2021/11/12
- [Octave-bug-tracker] [bug #49653] Build failure with ImageMagick, Markus Mützel, 2021/11/14