diff --git a/libvips/foreign/magick.c b/libvips/foreign/magick.c index 1cf7ef1ce9..876cab3f26 100644 --- a/libvips/foreign/magick.c +++ b/libvips/foreign/magick.c @@ -138,6 +138,15 @@ magick_sniff(const unsigned char *bytes, size_t length) (bytes[4] != 0 || bytes[5] != 0)) return "ICO"; + if (length >= 8 && + bytes[1] == 0 && + bytes[2] == 0 && + bytes[5] == 0 && + bytes[6] == 0 && + (bytes[4] == 7 || + bytes[7] == 7)) + return "XWD"; + if (length >= 18 && (bytes[1] == 0 || bytes[1] == 1) &&
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: