From 4d05afb4158257da94df3b942ca5ae7d8c61e34e Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Wed, 17 Jun 2026 16:52:41 +0200 Subject: [PATCH] Fix for ImageMagick 7 ImageMagick 7 no longer has `IntegerPixel`. Instead it now defines `LongPixel` to have always 32 bits on all architectures. In ImageMagick 6, `LongPixel` had 32 or 64 bits, depending on the size of the native type `long`. --- urlApp/src/URLDriver.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/urlApp/src/URLDriver.cpp b/urlApp/src/URLDriver.cpp index 1d0efa4..62c2c8f 100644 --- a/urlApp/src/URLDriver.cpp +++ b/urlApp/src/URLDriver.cpp @@ -120,7 +120,11 @@ asynStatus URLDriver::readImage() break; case 32: dataType = NDUInt32; +#if MagickLibVersion >= 0x700 + storageType = LongPixel; +#else storageType = IntegerPixel; +#endif break; default: asynPrint(pasynUserSelf, ASYN_TRACE_ERROR,