From b3ccbde0d3e540453b80709002cae0630172f1dc Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 18 Jul 2015 08:52:46 +0200 Subject: Automatically convert invalid jpg pics Well, seems that's Qt's ImageReader got pickier regarding jpeg-files. If the resulting QPixmap is null and void, try to convert them to png. This introduces a new dependency to ImageMagic++. I don't like it, but it works, kinda... I saw random crashes while testing... --- shemov.pro | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shemov.pro') diff --git a/shemov.pro b/shemov.pro index 739fc1d..a52da86 100644 --- a/shemov.pro +++ b/shemov.pro @@ -85,5 +85,6 @@ HEADERS = \ archivebrowsermodel.h \ unpacker.h \ searchdialog.h -LIBS += -lmagic -lXfixes -lX11 +LIBS += -lmagic -lXfixes -lX11 -lMagick++-6.Q16HDRI +INCLUDEPATH += /usr/include/ImageMagick-6/ RESOURCES = shemov.qrc -- cgit v1.2.3-70-g09d2