Coder Social home page Coder Social logo

marek629 / sir Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 2.0 7.43 MB

Simple Image Resizer using Qt4/5 and exiv2

Home Page: http://marek629.github.io/SIR/

License: GNU General Public License v2.0

CMake 2.12% C++ 96.60% PHP 0.07% Python 0.06% Inno Setup 1.15%
c-plus-plus exif exiv2 image-resizer qt qt4 qt5 resize-images

sir's People

Contributors

marek629 avatar rsachetto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

rsachetto sahwar

sir's Issues

Fails to build with exiv2 0.28.0.

Seems there was a few API/ABI changes for the recently released exiv2 0.28.0. Sir builds fine with exiv2 0.27.6.

[ 39%] Building CXX object src/CMakeFiles/sir.dir/raw/basic/CollectorDecorator.cpp.o
cd /builddir/build/BUILD/SIR-3.2.1/src && /usr/lib/ccache/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSIR_CMAKE -DSIR_METADATA_SUPPORT -DTESTING_DCRAW_EXE_PERMISSIONS -I/builddir/build/BUILD/SIR-3.2.1/src -I/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/include -I/builddir/build/BUILD/SIR-3.2.1 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/./mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtPrintSupport -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -DNDEBUG   -Wall -std=c++11 -fPIC -MD -MT src/CMakeFiles/sir.dir/raw/basic/CollectorDecorator.cpp.o -MF CMakeFiles/sir.dir/raw/basic/CollectorDecorator.cpp.o.d -o CMakeFiles/sir.dir/raw/basic/CollectorDecorator.cpp.o -c /builddir/build/BUILD/SIR-3.2.1/src/raw/basic/CollectorDecorator.cpp
/builddir/build/BUILD/SIR-3.2.1/src/raw/RawLoader.cpp: In member function 'bool RawLoader::isRawImage()':
/builddir/build/BUILD/SIR-3.2.1/src/raw/RawLoader.cpp:48:36: warning: 'void QProcess::start(const QString&, QIODevice::OpenMode)' is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead [-Wdeprecated-declarations]
     dcrawProcess.start(dcrawCommand);
                                    ^
In file included from /usr/include/qt5/QtCore/QProcess:1,
                 from /builddir/build/BUILD/SIR-3.2.1/src/raw/RawLoader.cpp:25:
/usr/include/qt5/QtCore/qprocess.h:168:10: note: declared here
     void start(const QString &command, OpenMode mode = ReadWrite);
          ^~~~~
/builddir/build/BUILD/SIR-3.2.1/src/raw/RawLoader.cpp: In member function 'PaintDevice* RawLoader::loadFromRawFile()':
/builddir/build/BUILD/SIR-3.2.1/src/raw/RawLoader.cpp:74:31: warning: 'void QProcess::start(const QString&, QIODevice::OpenMode)' is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead [-Wdeprecated-declarations]
     process.start(dcrawCommand);
                               ^
In file included from /usr/include/qt5/QtCore/QProcess:1,
                 from /builddir/build/BUILD/SIR-3.2.1/src/raw/RawLoader.cpp:25:
/usr/include/qt5/QtCore/qprocess.h:168:10: note: declared here
     void start(const QString &command, OpenMode mode = ReadWrite);
          ^~~~~
[ 40%] Building CXX object src/CMakeFiles/sir.dir/raw/basic/ColorOptionsCollector.cpp.o
cd /builddir/build/BUILD/SIR-3.2.1/src && /usr/lib/ccache/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSIR_CMAKE -DSIR_METADATA_SUPPORT -DTESTING_DCRAW_EXE_PERMISSIONS -I/builddir/build/BUILD/SIR-3.2.1/src -I/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/include -I/builddir/build/BUILD/SIR-3.2.1 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/./mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtPrintSupport -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -DNDEBUG   -Wall -std=c++11 -fPIC -MD -MT src/CMakeFiles/sir.dir/raw/basic/ColorOptionsCollector.cpp.o -MF CMakeFiles/sir.dir/raw/basic/ColorOptionsCollector.cpp.o.d -o CMakeFiles/sir.dir/raw/basic/ColorOptionsCollector.cpp.o -c /builddir/build/BUILD/SIR-3.2.1/src/raw/basic/ColorOptionsCollector.cpp
[ 40%] Building CXX object src/CMakeFiles/sir.dir/raw/basic/DcrawOptionsCollector.cpp.o
cd /builddir/build/BUILD/SIR-3.2.1/src && /usr/lib/ccache/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSIR_CMAKE -DSIR_METADATA_SUPPORT -DTESTING_DCRAW_EXE_PERMISSIONS -I/builddir/build/BUILD/SIR-3.2.1/src -I/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/include -I/builddir/build/BUILD/SIR-3.2.1 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/./mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtPrintSupport -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -DNDEBUG   -Wall -std=c++11 -fPIC -MD -MT src/CMakeFiles/sir.dir/raw/basic/DcrawOptionsCollector.cpp.o -MF CMakeFiles/sir.dir/raw/basic/DcrawOptionsCollector.cpp.o.d -o CMakeFiles/sir.dir/raw/basic/DcrawOptionsCollector.cpp.o -c /builddir/build/BUILD/SIR-3.2.1/src/raw/basic/DcrawOptionsCollector.cpp
[ 41%] Building CXX object src/CMakeFiles/sir.dir/raw/basic/InterpolationOptionsCollector.cpp.o
cd /builddir/build/BUILD/SIR-3.2.1/src && /usr/lib/ccache/c++ -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DSIR_CMAKE -DSIR_METADATA_SUPPORT -DTESTING_DCRAW_EXE_PERMISSIONS -I/builddir/build/BUILD/SIR-3.2.1/src -I/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/include -I/builddir/build/BUILD/SIR-3.2.1 -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib/qt5/./mkspecs/linux-g++ -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtPrintSupport -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables  -DNDEBUG   -Wall -std=c++11 -fPIC -MD -MT src/CMakeFiles/sir.dir/raw/basic/InterpolationOptionsCollector.cpp.o -MF CMakeFiles/sir.dir/raw/basic/InterpolationOptionsCollector.cpp.o.d -o CMakeFiles/sir.dir/raw/basic/InterpolationOptionsCollector.cpp.o -c /builddir/build/BUILD/SIR-3.2.1/src/raw/basic/InterpolationOptionsCollector.cpp
In file included from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/../../metadata/MetadataUtils.hpp:30,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/../../ConvertThread.hpp:31,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/moc_ConvertThread.cpp:10,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/mocs_compilation.cpp:3:
/builddir/build/BUILD/SIR-3.2.1/src/metadata/Metadata.hpp:72:19: error: 'AutoPtr' in 'class Exiv2::Image' does not name a type
     Exiv2::Image::AutoPtr imageAutoPtr() { return image; }
                   ^~~~~~~
/builddir/build/BUILD/SIR-3.2.1/src/metadata/Metadata.hpp:86:19: error: 'AutoPtr' in 'class Exiv2::Image' does not name a type
     Exiv2::Image::AutoPtr image;
                   ^~~~~~~
/builddir/build/BUILD/SIR-3.2.1/src/metadata/Metadata.hpp: In member function 'QSize MetadataUtils::Metadata::imageSize() const':
/builddir/build/BUILD/SIR-3.2.1/src/metadata/Metadata.hpp:75:44: error: 'image' was not declared in this scope
     QSize imageSize() const { return QSize(image->pixelWidth(), image->pixelHeight()); }
                                            ^~~~~
/builddir/build/BUILD/SIR-3.2.1/src/metadata/Metadata.hpp:75:44: note: suggested alternative: 'QImage'
     QSize imageSize() const { return QSize(image->pixelWidth(), image->pixelHeight()); }
                                            ^~~~~
                                            QImage
In file included from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/IMAN36LHMA/moc_AboutDialog.cpp:10,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/mocs_compilation.cpp:10:
/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/IMAN36LHMA/../../widgets/AboutDialog.hpp: At global scope:
/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/IMAN36LHMA/../../widgets/AboutDialog.hpp:34:60: warning: 'constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations]
     AboutDialog( QWidget * parent = 0, Qt::WindowFlags f = 0 );
                                                            ^
In file included from /usr/include/qt5/QtCore/qglobal.h:1299,
                 from /usr/include/qt5/QtCore/qalgorithms.h:43,
                 from /usr/include/qt5/QtCore/qlist.h:43,
                 from /usr/include/qt5/QtCore/qstringlist.h:41,
                 from /usr/include/qt5/QtCore/QStringList:1,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/../../CommandLineAssistant.hpp:25,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/moc_CommandLineAssistant.cpp:10,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/mocs_compilation.cpp:2:
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
                                                                                ^~~~~~
In file included from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/IMAN36LHMA/moc_OptionsDialog.cpp:10,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/mocs_compilation.cpp:20:
/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/IMAN36LHMA/../../widgets/OptionsDialog.hpp:58:62: warning: 'constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations]
     OptionsDialog( QWidget * parent = 0, Qt::WindowFlags f = 0);
                                                              ^
In file included from /usr/include/qt5/QtCore/qglobal.h:1299,
                 from /usr/include/qt5/QtCore/qalgorithms.h:43,
                 from /usr/include/qt5/QtCore/qlist.h:43,
                 from /usr/include/qt5/QtCore/qstringlist.h:41,
                 from /usr/include/qt5/QtCore/QStringList:1,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/../../CommandLineAssistant.hpp:25,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/moc_CommandLineAssistant.cpp:10,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/mocs_compilation.cpp:2:
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
                                                                                ^~~~~~
In file included from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/IMAN36LHMA/moc_SelectionDialog.cpp:10,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/mocs_compilation.cpp:23:
/builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/IMAN36LHMA/../../widgets/SelectionDialog.hpp:46:71: warning: 'constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]' is deprecated: Use default constructor instead [-Wdeprecated-declarations]
                              QWidget *parent = 0, Qt::WindowFlags f = 0);
                                                                       ^
In file included from /usr/include/qt5/QtCore/qglobal.h:1299,
                 from /usr/include/qt5/QtCore/qalgorithms.h:43,
                 from /usr/include/qt5/QtCore/qlist.h:43,
                 from /usr/include/qt5/QtCore/qstringlist.h:41,
                 from /usr/include/qt5/QtCore/QStringList:1,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/../../CommandLineAssistant.hpp:25,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/EWIEGA46WW/moc_CommandLineAssistant.cpp:10,
                 from /builddir/build/BUILD/SIR-3.2.1/src/sir_autogen/mocs_compilation.cpp:2:
/usr/include/qt5/QtCore/qflags.h:123:80: note: declared here
     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
                                                                                ^~~~~~
gmake[2]: *** [src/CMakeFiles/sir.dir/build.make:226: src/CMakeFiles/sir.dir/sir_autogen/mocs_compilation.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
/builddir/build/BUILD/SIR-3.2.1/src/raw/RawToolbox.cpp: In member function 'QString RawToolbox::helpMessage()':
/builddir/build/BUILD/SIR-3.2.1/src/raw/RawToolbox.cpp:37:38: warning: 'void QProcess::start(const QString&, QIODevice::OpenMode)' is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead [-Wdeprecated-declarations]
     dcraw.start(rawModel->dcrawPath());
                                      ^
In file included from /usr/include/qt5/QtCore/QProcess:1,
                 from /builddir/build/BUILD/SIR-3.2.1/src/raw/RawToolbox.cpp:24:
/usr/include/qt5/QtCore/qprocess.h:168:10: note: declared here
     void start(const QString &command, OpenMode mode = ReadWrite);
          ^~~~~
gmake[2]: Leaving directory '/builddir/build/BUILD/SIR-3.2.1'
gmake[1]: *** [CMakeFiles/Makefile2:184: src/CMakeFiles/sir.dir/all] Error 2
gmake[1]: Leaving directory '/builddir/build/BUILD/SIR-3.2.1'
gmake: *** [Makefile:139: all] Error 2

Unable to preview PNG image files (workaround)

I successfully built SIR 2.7.3 on Haiku, (thanks to my previous ticket, the issue about the window of the app was solved).
But when i insert any PNG image file inside SIR, and I select that file in the list inside SIR, the app will crash (i cannot also see t he preview of PNG files).
I've tried to build SIR using libpng 1.5.12 and libpng 1.6.14, but this issue was still here: if i click on any PNG file inside SIR, SIR will crash, no difference if the png file will contain alpha channel or not.
I have found a workaround to prevent this crash and then to be able to see the preview of PNG files: I opened the SIR.conf file and changed the string

[Metadata]
enabled=true

to
[Metadata]
enabled=false

But in that way i cannot work on metadata of JPG files; i have to enable again metadata support.

Sir compiled fine, but i can't see the window of the app

Hi, I succesfully built SIR 2.7.2 on Haiku (the latest version which i compiled on Haiku wqas SIR 2.1, a long time ago). I have QT 4.8.6 and Exiv2 0.23.
SIR is compiled fine without errors, but when i launch the exacutable i can see these messages:

qt_init()
Reimp: HQApplication::HQApplication

Qt::WA_OutsideWSRange

then, i can see the icon of SIR in the running application, but the window of the app itself is not displayed. I also run other QT applications without issues.

Compiled using GCC4.8.3

Any hints?
Thank you.

Hi Res display problem

On a Dell xps with HiDpi display Linux Mint the scrolling list of files shows just tiny fraction of one file name.
selection_002

Issue after changing exif data

Using SIR 2.7.3, i changed some exif entries of a jpg file (eg I've changed "artist" and "user comments"), well. Then i opened again this jpg file, to change exif details again: when I do right click on this file (i have previously modified exif data using SIR) and i choose "show metadata", SIR will hangs, and will take the whole cpu process; i have to kill SIR. In anyway, when i change exif data on any jpg file using SIR, I will no longer able able to change exif details again: SIR will hang, so seems that i'm able to change exif data only once.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.