PDF: better error message for non-converted svg images.

This commit is contained in:
John MacFarlane
2017-05-20 23:24:20 +02:00
parent 753d5811e2
commit d109c8be8f
+1
View File
@@ -159,6 +159,7 @@ convertImage tmpdir fname =
Just "image/png" -> doNothing
Just "image/jpeg" -> doNothing
Just "application/pdf" -> doNothing
Just "image/svg+xml" -> return $ Left "conversion from svg not supported"
_ -> JP.readImage fname >>= \res ->
case res of
Left e -> return $ Left e