From 6c77212a34f6faa9131e6da8942bae1003e03a21 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Mon, 29 Jun 2009 00:06:57 +0000 Subject: [PATCH] fix imagemagick effects for file:// uris --- src/extension/internal/bitmap/imagemagick.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/extension/internal/bitmap/imagemagick.cpp b/src/extension/internal/bitmap/imagemagick.cpp index f86d0ec42..bfde84e0c 100644 --- a/src/extension/internal/bitmap/imagemagick.cpp +++ b/src/extension/internal/bitmap/imagemagick.cpp @@ -120,7 +120,10 @@ ImageMagickDocCache::readImage(const char *xlink, Magick::Image *image) image->read(blob); } else { - image->read(xlink); + if (!strncmp(xlink, "file://", 7) && strlen(xlink) > 7) + image->read(xlink + 7); + else + image->read(xlink); } } -- 2.30.2