Thanks for taking the time to report this bug and including a patch too. I've tried recreating this on the Jackalope using package version 7:6.4.5.4.dfsg1-1ubuntu3 and was unable to. Looking at the source code of imagemagick it seems to have change a bit too:
if (max_value >= 65536) ThrowReaderException(CorruptImageError,"ImproperImageHeader"); for (depth=1; GetQuantumRange(depth) < max_value; depth++) ; image->depth=depth; if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0)) if (image->scene >= (image_info->scene+image_info->number_scenes-1)) Since you wrote the patch, do you think this might resolve the bug? Thanks in advance. ** Changed in: imagemagick (Ubuntu) Status: New => Incomplete -- ImageMagick interprets PGM header incorrectly https://bugs.launchpad.net/bugs/346474 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs