summaryrefslogtreecommitdiffstats
path: root/shemov.pro
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2015-07-18 08:52:46 +0200
committerArno <arno@disconnect.de>2015-07-18 08:52:46 +0200
commitb3ccbde0d3e540453b80709002cae0630172f1dc (patch)
treeb810c54996fde7f6f57b0ed8f31532c5ac8e82cc /shemov.pro
parenta53cf905aed8cc14c9120ad03b6f03fe1373fc2d (diff)
downloadSheMov-b3ccbde0d3e540453b80709002cae0630172f1dc.tar.gz
SheMov-b3ccbde0d3e540453b80709002cae0630172f1dc.tar.bz2
SheMov-b3ccbde0d3e540453b80709002cae0630172f1dc.zip
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...
Diffstat (limited to 'shemov.pro')
-rw-r--r--shemov.pro3
1 files changed, 2 insertions, 1 deletions
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