diff -Nru sir-3.1/CHANGELOG.md sir-3.2/CHANGELOG.md --- sir-3.1/CHANGELOG.md 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/CHANGELOG.md 2018-02-04 19:17:01.000000000 +0000 @@ -1,3 +1,16 @@ +# v3.2 + +## Marek Jędryka + +### Sun Feb 04 2018 + +* Fixed loading transparent image with custom background colour +* Fixed GIF presence at output file formats list +* Fixed translations of standard dialog buttons +* Updated Spanish translation thanks José M. Ciordia +* Updated Polish translation + + # v3.1 ## Marek Jędryka diff -Nru sir-3.1/debian/changelog sir-3.2/debian/changelog --- sir-3.1/debian/changelog 2018-02-08 06:44:20.000000000 +0000 +++ sir-3.2/debian/changelog 2018-02-08 06:20:45.000000000 +0000 @@ -1,4 +1,14 @@ -sir (3.1-1dhor~xenial) xenial; urgency=medium +sir (3.2-1dhor~xenial) xenial; urgency=medium + + * Fixed loading transparent image with custom background colour + * Fixed GIF presence at output file formats list + * Fixed translations of standard dialog buttons + * Updated Spanish translation thanks José M. Ciordia + * Updated Polish translation + + -- Dariusz Duma Thu, 08 Feb 2018 07:19:36 +0100 + +sir (3.1-1dhor~trusty) trusty; urgency=medium * Changed format of generated thumbnails from TIFF to JPEG * Fixed wait currsor after unselect files issue @@ -7,7 +17,7 @@ -- Dariusz Duma Sat, 13 Feb 2016 16:54:50 +0100 -sir (3.0-1dhor~xenial) xenial; urgency=medium +sir (3.0-1dhor~trusty) trusty; urgency=medium * Added Raw tab into main window * Added Basic view tab for user frendly Raw configuration @@ -15,7 +25,7 @@ -- Dariusz Duma Sat, 09 Jan 2016 21:05:15 +0100 -sir (2.8-1dhor~xenial) xenial; urgency=medium +sir (2.8-1dhor~trusty) trusty; urgency=medium * Changed SIR to single instance application * Changed minimum Qt 4.7 required @@ -41,7 +51,7 @@ -- Dariusz Duma Fri, 13 Mar 2015 13:20:10 +0100 -sir (2.7.3-1dhor~xenial) xenial; urgency=medium +sir (2.7.3-1dhor~trusty) trusty; urgency=medium * Changed all occurrences of old SIR webpage URL * Windows: fixed button icons diff -Nru sir-3.1/debian/patches/install_in_opt.patch sir-3.2/debian/patches/install_in_opt.patch --- sir-3.1/debian/patches/install_in_opt.patch 2018-02-08 06:44:20.000000000 +0000 +++ sir-3.2/debian/patches/install_in_opt.patch 2018-02-08 06:23:00.000000000 +0000 @@ -8,7 +8,7 @@ GenericName=Simple Image Resizer -Exec=sir +Exec=/opt/extras.ubuntu.com/sir/bin/sir - Comment=Qt4 Image Resizer + Comment=Qt5 Image Resizer -Icon=/usr/share/pixmaps/sir.png +Icon=/opt/extras.ubuntu.com/sir/share/pixmaps/sir.png Terminal=0 diff -Nru sir-3.1/Doxyfile sir-3.2/Doxyfile --- sir-3.1/Doxyfile 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/Doxyfile 2018-02-04 19:17:01.000000000 +0000 @@ -32,7 +32,7 @@ # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = 3.1 +PROJECT_NUMBER = 3.2 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer diff -Nru sir-3.1/.gitignore sir-3.2/.gitignore --- sir-3.1/.gitignore 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/.gitignore 2018-02-04 19:17:01.000000000 +0000 @@ -6,6 +6,7 @@ /.project /.svn/* *.user* +*md.backup /Makefile /CMakeCache.txt /CMakeFiles/* diff -Nru sir-3.1/src/CommandLineAssistant.cpp sir-3.2/src/CommandLineAssistant.cpp --- sir-3.1/src/CommandLineAssistant.cpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/CommandLineAssistant.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -88,15 +88,7 @@ else if (!shortArgs.filter("s").isEmpty()) sessionFile_ = args[args.indexOf(shortArgs.filter("s")[0])+1]; - LanguageUtils *languages = LanguageUtils::instance(); - QString qmFile = languages->fileName(lang); - languages->appTranslator->load(qmFile, - QCoreApplication::applicationDirPath() - +QString("../share/sir/translations") ); - languages->qtTranslator->load("qt_"+qmFile.split('_').at(1).split('.').first(), - QLibraryInfo::location(QLibraryInfo::TranslationsPath)); - qApp->installTranslator(languages->qtTranslator); - qApp->installTranslator(languages->appTranslator); + LanguageUtils *languages = installTranslations(lang); // print help if (!shortArgs.filter("h").isEmpty() || !longArgs.filter("help").isEmpty()) { @@ -120,6 +112,7 @@ // set language if (!lang.isEmpty()) { Settings *s = Settings::instance(); + QString qmFile = languages->fileName(lang); s->settings.languageFileName = qmFile; s->settings.languageNiceName = languages->languageInfo(qmFile).niceName; result += 2; @@ -172,3 +165,26 @@ killTimer(timerId); } } + +LanguageUtils * CommandLineAssistant::installTranslations(const QString &lang) +{ + LanguageUtils *languages = LanguageUtils::instance(); + QString qmFile = languages->fileName(lang); + + QString translationsPath; + QString translationFileName; + + translationFileName = qmFile; + translationsPath = QCoreApplication::applicationDirPath() + + QString("../share/sir/translations"); + languages->appTranslator->load(translationFileName, translationsPath); + + translationFileName = "qt_" + qmFile.split('_').at(1).split('.').first(); + translationsPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath); + languages->qtTranslator->load(translationFileName, translationsPath); + + qApp->installTranslator(languages->qtTranslator); + qApp->installTranslator(languages->appTranslator); + + return languages; +} diff -Nru sir-3.1/src/CommandLineAssistant.hpp sir-3.2/src/CommandLineAssistant.hpp --- sir-3.1/src/CommandLineAssistant.hpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/CommandLineAssistant.hpp 2018-02-04 19:17:01.000000000 +0000 @@ -26,8 +26,10 @@ #include #include +class LanguageUtils; class TreeWidget; + /** \brief Command line arguments parser class. * * Supported arguments: @@ -66,6 +68,8 @@ QString sessionFile_; QSharedMemory memory; TreeWidget *treeWidget; + + LanguageUtils *installTranslations(const QString &lang); }; #endif // COMMANDLINEASSISTANT_HPP diff -Nru sir-3.1/src/ConvertThread.cpp sir-3.2/src/ConvertThread.cpp --- sir-3.1/src/ConvertThread.cpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/ConvertThread.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -34,6 +34,8 @@ #include #include +#include + #include @@ -80,8 +82,6 @@ */ void ConvertThread::run() { - RawToolbox rawToolbox = RawToolbox(&shared.rawModel); - while(work) { pd.imgData = this->imageData; // imageData change protection by convertImage() sizeComputed = 0; @@ -117,24 +117,12 @@ originalFormat = originalFormat.toLower(); bool svgSource(originalFormat == "svg" || originalFormat == "svgz"); - QImage *image = 0; + QImage *image = loadImage(pd.imagePath, &shared.rawModel, svgSource); - // load image data - if (rawToolbox.isRawSupportEnabled()) { - RawImageLoader rawLoader = RawImageLoader(&shared.rawModel, - pd.imagePath); - image = rawLoader.load(); - } else if (svgSource) { - image = loadSvgImage(); - if (!image) { - getNextOrStop(); - continue; - } - } else { - image = new QImage(); - image->load(pd.imagePath); + if (!image) { + getNextOrStop(); + continue; } - if(image->isNull()) { //For some reason we where not able to open the image file emit imageStatus(pd.imgData, tr("Failed to open original image"), @@ -682,23 +670,61 @@ return 0; } -/** Fills image with custom background color if is valid or transparent - * (if target file format supports transparency); otherwise with white. - * \sa SharedInformation::backgroundColor SharedInformation::format - */ -void ConvertThread::fillImage(QImage *img) { - if (shared.backgroundColor.isValid()) - img->fill(shared.backgroundColor.rgb()); - else if (shared.format == "gif" || shared.format == "png") - img->fill(Qt::transparent); - else // in other formats tranparency isn't supported - img->fill(Qt::white); +QImage *ConvertThread::loadImage(const QString &imagePath, RawModel *rawModel, + bool isSvgSource) +{ + QImage *image = NULL; + + if (isRegularImageToLoad(imagePath)) { + image = loadRegularImage(imagePath); + } else if (isSvgSource) { + image = loadSvgImage(imagePath); + } else { + image = loadRawImage(imagePath, rawModel); + } + + return image; } -/** Loads and modifies SVG file if needed. Renders SVG data to \a image object. - * \return Pointer to rendered image if succeed. Otherwise null pointer. - */ -QImage * ConvertThread::loadSvgImage() { +bool ConvertThread::isRegularImageToLoad(const QString &imagePath) +{ + QFileInfo imageFileInfo(imagePath); + QString fileExtension = imageFileInfo.fileName().split('.').last(); + fileExtension = fileExtension.toLower(); + + if (fileExtension == "svg" || fileExtension == "svgz") { + return false; + } + + QByteArray format = fileExtension.toLatin1(); + return QImageReader::supportedImageFormats().contains(format); +} + +QImage *ConvertThread::loadRegularImage(const QString &imagePath) +{ + QImage *image = NULL; + + QFileInfo imageFileInfo(imagePath); + QString fileExtension = imageFileInfo.fileName().split('.').last(); + fileExtension = fileExtension.toLower(); + + if (fileExtension == "png" || fileExtension == "gif") { + QImage loadedImage; + loadedImage.load(imagePath); + image = new QImage(loadedImage.size(), loadedImage.format()); + fillImage(image); + QPainter painter(image); + painter.drawImage(image->rect(), loadedImage); + } else { + image = new QImage(); + image->load(imagePath); + } + + return image; +} + +QImage *ConvertThread::loadSvgImage(const QString &imagePath) +{ QSvgRenderer renderer; if (shared.svgModifiersEnabled) { SvgModifier modifier(pd.imagePath); @@ -771,6 +797,32 @@ return img; } +QImage *ConvertThread::loadRawImage(const QString &imagePath, RawModel *rawModel) +{ + RawToolbox rawToolbox(rawModel); + + if (rawToolbox.isRawSupportEnabled()) { + RawImageLoader rawLoader = RawImageLoader(rawModel, imagePath); + return rawLoader.load(); + } + + return NULL; +} + +void ConvertThread::fillImage(QImage *img) +{ + if (shared.backgroundColor.isValid()) { + img->fill(shared.backgroundColor.rgb()); + } else { + if (shared.format == "gif" || shared.format == "png") { + img->fill(Qt::transparent); + } else { + // in other formats tranparency isn't supported + img->fill(Qt::white); + } + } +} + /** Draws effects into new image. * \return New image object. */ diff -Nru sir-3.1/src/ConvertThread.hpp sir-3.2/src/ConvertThread.hpp --- sir-3.1/src/ConvertThread.hpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/ConvertThread.hpp 2018-02-04 19:17:01.000000000 +0000 @@ -19,8 +19,8 @@ * Program URL: http://marek629.github.io/SIR/ */ -#ifndef CONVERTTHREAD_H -#define CONVERTTHREAD_H +#ifndef CONVERTTHREAD_HPP +#define CONVERTTHREAD_HPP #ifndef SIR_CMAKE #define SIR_METADATA_SUPPORT @@ -49,6 +49,7 @@ class ConvertThread : public QThread { Q_OBJECT friend class ConvertDialog; + friend class ConvertThreadTest; public: ConvertThread(QObject *parent, int tid); @@ -133,9 +134,16 @@ bool isLinearFileSizeFormat(double *destSize); char askEnlarge(const QImage &image, const QString &imagePath); char askOverwrite(QFile *tempFile); + + QImage *loadImage(const QString &imagePath, RawModel *rawModel, + bool isSvgSource); + bool isRegularImageToLoad(const QString &imagePath); + QImage *loadRegularImage(const QString &imagePath); + QImage *loadSvgImage(const QString &imagePath); + QImage *loadRawImage(const QString &imagePath, RawModel *rawModel); + void fillImage(QImage *img); - QImage *loadSvgImage(); QImage paintEffects(QImage *image); }; -#endif // CONVERTTHREAD_H +#endif // CONVERTTHREAD_HPP diff -Nru sir-3.1/src/SharedInformation.hpp sir-3.2/src/SharedInformation.hpp --- sir-3.1/src/SharedInformation.hpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/SharedInformation.hpp 2018-02-04 19:17:01.000000000 +0000 @@ -36,6 +36,7 @@ class SharedInformation { friend class ConvertThread; + friend class ConvertThreadTest; friend class ConvertDialog; friend class ConvertDialogTest; friend class ConvertEffects; diff -Nru sir-3.1/src/translations/sir_cz.ts sir-3.2/src/translations/sir_cz.ts --- sir-3.1/src/translations/sir_cz.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_cz.ts 2018-02-04 19:17:01.000000000 +0000 @@ -557,7 +557,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -578,9 +578,8 @@ ConvertDialog - You alread sent information about your SIR installation. Thank you very much! - Již jste poslal informace o své instalaci SIR. Děkujeme vám velmi moc! + Již jste poslal informace o své instalaci SIR. Děkujeme vám velmi moc! @@ -692,7 +691,7 @@ Převádí se - + Cancelled Zrušeno @@ -753,70 +752,76 @@ - + + + Remove all files from the list + + + + Target Format: - - + + Effects - + Raw Surový - + &Quit &Ukončit - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + &Convert Selected &Převést vybrané @@ -831,23 +836,23 @@ - - + + Remove All - + Alt+C Alt+C - + Convert &All Převést &vše - + Alt+A Alt+A @@ -857,7 +862,7 @@ - + Add &Dir... &Přidat adresář... @@ -870,12 +875,12 @@ Od&stranit vše - + Target Folder: Cílová složka: - + Target Prefix: Cílová předpona: @@ -884,12 +889,12 @@ Výška: - + &Browse &Procházet - + Alt+B Alt+B @@ -899,12 +904,12 @@ - + Add &File... Přidat &soubor... - + Options Volby @@ -917,12 +922,12 @@ &Zachovat poměr stran - + Target Suffix: Cílová přípona: - + Size Velikost @@ -967,31 +972,30 @@ Žádné obrácení - + Check for updates... Zjistit možnost aktualizací... - + Let us know that you are using SIR... Dejte nám vědět, že používáte SIR... - Remove all filles the files list - Odstranit všechny soubory ze seznamu souborů + Odstranit všechny soubory ze seznamu souborů File Soubor - + Edit Úpravy - + About Nápověda @@ -1008,45 +1012,45 @@ Obrátit svisle a vodorovně - + Actions Činnosti - + Session - - + + Quit Ukončit - + &Options &Volby - + Alt+O - + About Sir... O programu SIR... - + About Qt... O Qt... - + Converted Převedeno @@ -1095,6 +1099,11 @@ Dejte nám vědět! + + You already sent information about your SIR installation. Thank you very much! + + + Go for it! Jdi pro to! @@ -1243,63 +1252,63 @@ Převádí se - + Failed to open original image Nepodařilo se otevřít původní obrázek - - - - + + + + Converted Převedeno - + Error code: Kód chyby: - - + + Failed to compute image size Nepodařilo se spočítat velikostí obrázku - - + + Failed to save Nepodařilo se uložit - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Zrušeno - - + + Failed to convert Nepodařilo se převést @@ -1308,11 +1317,11 @@ Nepodarilo sa skonvertovať - - - - - + + + + + Skipped Přeskočeno @@ -2583,24 +2592,29 @@ MessageBox + &Yes - An&o + An&o + &No - &Ne + &Ne + Yes to &All - &Ano pro vše + &Ano pro vše + N&o to All - N&e pro vše + N&e pro vše + &Cancel - Z&rušit + Z&rušit @@ -3260,7 +3274,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3790,8 +3804,9 @@ OK + Cancel - Zrušit + Zrušit Sir - Options @@ -3846,6 +3861,11 @@ + + Ok + + + General Settings Obecná nastavení @@ -4322,11 +4342,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_de.ts sir-3.2/src/translations/sir_de.ts --- sir-3.1/src/translations/sir_de.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_de.ts 2018-02-04 19:17:01.000000000 +0000 @@ -400,7 +400,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -430,7 +430,7 @@ - You alread sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! @@ -591,7 +591,7 @@ Ja zu &allem - + Cancelled Abgesagt @@ -652,23 +652,23 @@ - - + + Remove All - + &Quit &Beenden - + &Convert Selected &Auswahl umwandeln - + Convert &All Alles &umwandeln @@ -678,7 +678,7 @@ - + Add &Dir... Verzeichnis &hinzufügen... @@ -691,12 +691,12 @@ A&lle entfernen - + Target Folder: Ziel Verzeichnis: - + Target Prefix: Zieldatei Präfix: @@ -705,7 +705,7 @@ Höhe: - + &Browse &Wählen @@ -715,12 +715,12 @@ - + Add &File... &Bild hinzufügen ... - + Options Optionen @@ -741,12 +741,12 @@ Datei - + Edit Bearbeiten - + About Hilfe @@ -761,143 +761,144 @@ - + + + Remove all files from the list + + + + Alt+B - + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Alt+A - + Alt+C - + Actions Aktionen - + Session - - + + Quit Beenden - + &Options &Optionen - + Alt+O - + About Sir... Über SIR... - + About Qt... Über Qt... - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Converted umgewandelt @@ -926,63 +927,63 @@ - + Failed to open original image - - - - + + + + Converted umgewandelt - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Abgesagt - - + + Failed to convert umwandeln gescheitert @@ -991,11 +992,11 @@ umwandeln gescheitert - - - - - + + + + + Skipped übersprungen @@ -2075,16 +2076,29 @@ MessageBox + &Yes - &Ja + &Ja + &No - &Nein + &Nein + Yes to &All - Ja zu &allem + Ja zu &allem + + + + N&o to All + + + + + &Cancel + @@ -2636,7 +2650,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3001,6 +3015,11 @@ SIR - Einstellungen + + Ok + + + SIR - Options SIR - Optionen @@ -3009,8 +3028,9 @@ OK + Cancel - Abbrechen + Abbrechen Sir - Options @@ -3299,11 +3319,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_en.ts sir-3.2/src/translations/sir_en.ts --- sir-3.1/src/translations/sir_en.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_en.ts 2018-02-04 19:17:01.000000000 +0000 @@ -392,7 +392,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -425,9 +425,13 @@ - You alread sent information about your SIR installation. Thank you very much! - You already sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! + + + + You already sent information about your SIR installation. Thank you very much! + @@ -594,7 +598,7 @@ - + Add &File... @@ -605,7 +609,7 @@ - + Add &Dir... @@ -626,198 +630,199 @@ - + + Remove all files from the list + + + + + Remove All - + Target Prefix: - + &Browse - + Alt+B - + Target Folder: - + Target Suffix: - + Target Format: - + Size - + Options - - + + Effects - + Raw - + Convert &All - + Alt+A - + &Convert Selected - + Alt+C - + &Quit - + Actions - + About - + Edit - + Session - - + + Quit - + &Options - + Alt+O - + About Sir... - + About Qt... - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Cancelled - + Converted @@ -826,11 +831,11 @@ ConvertThread - - - - - + + + + + Cancelled @@ -840,62 +845,62 @@ - + Failed to open original image - - - - + + + + Converted - - + + Failed to convert - - - - - + + + + + Skipped - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file @@ -2087,6 +2092,34 @@ + MessageBox + + + &Yes + + + + + &No + + + + + Yes to &All + + + + + N&o to All + + + + + &Cancel + + + + MetadataDialog @@ -2630,7 +2663,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3038,6 +3071,16 @@ Sir - Configure Options + + + Ok + + + + + Cancel + + OptionsScrollArea @@ -3281,11 +3324,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_es.ts sir-3.2/src/translations/sir_es.ts --- sir-3.1/src/translations/sir_es.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_es.ts 2018-02-04 19:17:01.000000000 +0000 @@ -131,7 +131,7 @@ Czech - Checho + Checo @@ -141,18 +141,18 @@ To enable dcraw visit: - Para activar dcraw visite: + Para activar dcraw visita: or do a sudo apt-get install dcraw on Debian based systems. - o bien ejecute sudo apt-get install dcraw en sistemas basados en Debian. + o bien ejecuta sudo apt-get install dcraw en sistemas basados en Debian. Donate - + Donar @@ -160,7 +160,7 @@ dcraw Help - + Ayuda dcraw @@ -168,22 +168,22 @@ Enable RAW images support (needs dcraw) - + Activar soporte para imágenes RAW (requiere dcraw) dcraw options: - + opciones dcraw: dcraw Executable Path: - + Ruta al ejecutable dcraw: Browse - Examinar + Examinar @@ -191,39 +191,39 @@ Check any metadata - + Comprobar cualquier metadata Created between - + Creado entre Author - + Autor Accepts regular expression - + Acepta expresión regular Copyright - + Copyright and - + y Digitized between - + Digitalizado entre @@ -231,170 +231,171 @@ ScrollArea - + Área de desplazamiento Enable RAW images support (needs dcraw) - + Activar soporte para imágenes RAW (requiere dcraw) Browse - Examinar + Examinar dcraw Executable Path: - + Ruta al ejecutable dcraw Interpolation - + Interpolación Quality - + Calidad After interpolation, clean up color artifacts by repeatedly applying a 3x3 median filter to the R-G and B-G channels. - + Después de interpolar, limpiar artefactos de color aplicando +repetidamente un filtro medio de 3x3 a los canales R-G y B-G. Post-processing cycles - + Ciclos de postprocesado Interpolate RGB as four colors. - + Interpolar RGB como cuatro colores Use high-speed, low-quality bilinear interpolation. - + Usar interpolación de bilineal de alta velocidad y baja calidad Use Variable Number of Gradients (VNG) interpolation. - + Usar interpolación VNG (Número Variable de Gradientes) Use Patterned Pixel Grouping (PPG) interpolation. - + Usar interpolación PPG (Agrupación de Píxeles en Patrones) Use Adaptive Homogeneity-Directed (AHD) interpolation. - + Usar interpolación AHD (Adaptativa Dirigida a la Homogeneidad) Repair - + Reparar Use this if the output shows false 2x2 meshes with VNG or mazes with AHD. - + Usar este si el resultado muestra mallas falsas de 2x2 con VNG o laberintos con AMD. Reconstruct highlights. Low numbers favor whites; high numbers favor colors. - + Reconstruir luces altas. Los números bajos mejoran los blancos; los números altos mejoran los colores. rebuild - + rehacer Highlight mode - + Modo luces altas Blend clipped and unclipped values together for a gradual fade to white. - + Mezclar juntos los valores recortado y sin recortar para un degradado a blanco. blend - + mezclar Leave highlights unclipped in various shades of pink. - + Dejar las luces altas no recortadas en varios tonos de rosa. unclip - + no recortar Clip all highlights to solid white (default). - + Recortar todas las luces blancas a blanco sólido (por defecto). clip - + recortar Rebuild level. - + Reconstruir nivel. The best threshold should be somewhere between 100 and 1000. - + El mejor umbral estaría situado entre 100 y 1000. Use wavelets to erase noise while preserving real detail. - + Usar undículas para borrar el ruido a la vez que se conserva el detalle. Color - + Color If this is not found, use another method. - + Si este no se encuentra, usar otro método. Use the white balance specified by the camera. - + Usar el balance de blancos especificado por la cámara Calculate the white balance by averaging the entire image. - + Calcular el balance de blancos hallando la media de toda la imagen. Besides DNG, this option only affects Olympus, Leaf, and Phase One cameras. - + Además de a DNG, esta opción solo afecta a cámaras Olympus, Leaf y Phase One. Use any color matrix from the camera metadata. - + Usar cualquier matriz de color de los metadatos de la cámara. @@ -402,13 +403,13 @@ Choose Color - + Elegir color CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -423,7 +424,20 @@ $ sir --help --lang pl both print help message in Polish language and quit. - + Uso: sir [options] [files] +Los archivos tecleados se abrirán en la lista de archivos de la ventana principal. + +Órdenes soportadas: + --help o -h escribir un mensaje de socorro y salir + --lang o -l LANG poner el idioma de la aplicación en el idioma representado por la abreviatura LANG + --session o -s session.xml restaurar sesión del archivo de sesión XML + +Ejemplo: +$ sir -hl pl +equivale a +$ sir --help --lang pl +ambos escriben un mensaje de ayuda en polaco y cierran. + @@ -434,74 +448,74 @@ Let us know! - + ¡Escríbenos! - You alread sent information about your SIR installation. Thank you very much! - + You already sent information about your SIR installation. Thank you very much! + Ya nos has mandado información sobre la instalación de SIR. ¡Muchas gracias! IMPORTANT: this action will not send any private data about you or your computer to SIR developers! It will only update a counter of unique installations of SIR. - + IMPORTANTE: ¡Esta acción no enviará ningún dato privado, ni de ti ni de tu ordenador ,a los desarrolladores de SIR! Sólo actualizará un contador de instalaciones de SIR. Go for it! - + ¡Adelante! No thanks! - + ¡No, gracias! There was an error while trying to connect with SIR website! Check your internet connection and try again later! - + ¡Ha ocurrido un error mientras se intentaba conectar con la página web de SIR! ¡Comprueba tu conexión de internet e inténtalo de nuevo más tarde! Thank you for let us know that you are using SIR! You are the user number %1 of this month! - + ¡Gracias por comunicarnos que usas SIR! ¡Eres el número %1 de este mes! SIR Updates - + Actualizaciones de SIR There was an error while trying to connect with SIR update website! Check your internet connection and try again later! - + ¡Ha ocurrido un error mientras se intentaba conectar con la página web de actualización de SIR! ¡Comprueba tu conexión de internet e inténtalo de nuevo más tarde! You have the lastest version of SIR! - + ¡Tienes la última versión de SIR! There is a new version of SIR available for download! - + ¡Hay una nueva versión de SIR lista para descargarse! Go to SIR website! - + ¡Ir a la página web de SIR! I will check later! - + ¡Lo comprobaré más tarde! Choose a directory - Elija un directorio + Elige un directorio @@ -536,19 +550,20 @@ Load image failed - + No se ha podido abrir la imagen Load image to add failed. Do you want continue anyway? - + No se ha podido abrir la imagen que había que añadir. +¿Quieres seguir igualmente? Choose session file - + Elige archivo de sesión @@ -556,37 +571,37 @@ XML Files - + Archivos XML Choose effects file - + Elegir archivo de efectos Version - + Versión Enlarge File? - SIR - + ¿Agrandar el archivo? - SIR A file called %1 is smaller than the requested size. Enlargement can cause deterioration of picture quality. Do you want enlarge it? - + Un archivo llamado %1 es menor del tamaño requerido. La ampliación puede deteriorar la calidad de imagen. ¿Quieres ampliarla? Please add at least one image file. - Por favor, añada al menos una imagen. + Por favor, añade al menos una imagen. Not converted yet - No convertido + No convertido aún Images @@ -594,12 +609,12 @@ Select one or more files to open - Seleccione uno o más archivos a abrir + Selecciona uno o más archivos para abrir Please select at least one image file. - Por favor, seleccione al menos una imagen. + Por favor, selecciona al menos una imagen. Convert Selected @@ -632,7 +647,7 @@ Sí a &todo - + Cancelled Cancelado @@ -646,10 +661,8 @@ &Eliminar archivo(s) - - - Add &Dir... - Añadir &directorio... + Add &Dir… + Añadir &directorio… &Target Format: @@ -660,26 +673,26 @@ E&liminar todas - + Target Folder: Carpeta destino: - + Target Prefix: - Prefijo destino: + Prefijo de destino: Height: Altura: - + &Browse &Examinar - + Alt+B Alt+E @@ -688,34 +701,32 @@ Anchura: - - - Add &File... - Añadir &archivo... + Add &File… + Añadir &archivo… Remove File(s) - + Eliminar archivo(s) Del - + Del - - + + Remove All - + Eliminar todos - + &Quit &Salir - + Options Opciones @@ -736,169 +747,218 @@ Calidad: - + &Convert Selected &Convertir seleccionadas - + Alt+C Alt+C - + Convert &All Convertir &todas + + + Add &File... + + + Alt+F + Alt+F + + + + + Add &Dir... Alt+D + Alt+D + + + + + Remove all files from the list - + Target Suffix: - + Sufijo de destino - + Target Format: - + Formato de destino - + Size - + Tamaño - - + + Effects - + Efectos - + Raw - + Raw - + Alt+A - Alt+T + Alt+A - + Actions Acciones - + + About Sir... + + + + + About Qt... + + + + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list + + &Select... - - Ctrl+Del + + &Import files... - - &Select... + + + Restore... - - Do advanced selection of images on list + + + Save... + Check for updates… + Buscar actualizaciones… + + + Let us know that you are using SIR… + Comunícanos que estás usando SIR… + + + Remove all filles the files list + Borrar todos los archivos de la lista de archivos + + + + Ctrl+Del + Ctrl+Del + + + &Select… + &Seleccionar… + + + Do advanced selection of images on list + Hacer una selección avanzada de las imágenes de la lista + + + Alt+S - + Alt+S - - &Import files... - + &Import files… + &Importar archivos… - + Alt+I - + Alt+i - - - Restore... - + Restore… + Restablecer… - - - Save... - + Save… + Guardar… File Archivo - + About Acerca de - + Edit Editar - + Session - + Sesión - - + + Quit Salir - + &Options &Opciones - + Alt+O - + Alt+O - - About Sir... - Acerca de Sir... + About Sir… + Acerca de Sir… - - About Qt... - Acerca de Qt... + About Qt… + Acerca de Qt… Name @@ -917,17 +977,17 @@ Estado - + Converted Convertida Skipped - Esquivada + Ignorada Failed to convert - No se pudo convertir + No se ha podido convertir @@ -935,81 +995,81 @@ Converting - + Convirtiendo - + Failed to open original image - No se pudo abrir la imagen original + No se ha podido abrir la imagen original - - - - + + + + Converted Convertida - + Error code: - + Código de error - - + + Failed to compute image size - + No se ha podido calcular el tamaño de la imagen - - + + Failed to save - + No se ha podido guardar - + Failed to save new SVG file - + No se ha podido guardar el nuevo archivo SVG - + Failed to open changed SVG file - + No se ha popido abrir el archivo SVG cambiado - + Failed to open SVG file - + No se ha podido abrir el archivo SVG - - - - - + + + + + Cancelled - Cancelado + Cancelado - - + + Failed to convert - No se pudo convertir + No se ha podido convertir Failed to Convert Conversión fallida - - - - - + + + + + Skipped - Esquivada + Ignorada @@ -1017,22 +1077,22 @@ Default image size: - + Tamaño de imagen predeterminado: Image size: - + Tamaño de imagen: File size: - + Tamaño de archivo: Select image to show this one details. - + Selecciona una imagen para mostrar sus detalles. @@ -1040,188 +1100,188 @@ File details options - + Opciones de detalles de archivo Exif - + Exif Flash mode - + Modo de plash User Comment - + Comentario de usuario Exposure bias - + Compensación de exposición Camera Model - + Modelo de cámara ISO Speed - + Sensibilidad ISO Orientation - + Orientación Artist - + Artista Copyright - + Copyright Exposure program - + Programa de exposición Exposure time - + Tiempo de exposición Digitized Date and Time - + Día y hora de digitalización Processing Software - + Software de procesado Shutter Speed - + Velocidad de obturación Exif Version - + Versión de Exif Aperture - + Abertura Camera Manufacturer - + Fabricante de la cámara Focal length - + Distancia focal Light metering mode - + Modo de medición de la luz Generated Date and Time - + Día y hora de creación IPTC - + IPTC Description - + Descripción Digitized date - + Día de digitalización Edit status - + Estado de edición Created date - + Día de creación Created time - + Hora de creación Keywords - + Palabras clave City - + Ciudad Object name - + Nombre del objeto Model version - + Versión del modelo Digitized time - + Hora de digitalización Author - + Autor Country - + País Print metadata fields: - + Imprimir campos de metadatos Show all - + Mostrar todos Hide all - + Ocultar todos @@ -1229,22 +1289,22 @@ Browse directory: - + Examinar carpeta: Browse - Examinar + Examinar Select imported files - + Seleccionar archivos importados Browse subdirectories - + Examinar subdirectorios @@ -1252,38 +1312,42 @@ Session write error - + Error de escritura de sesión Session saving to %1 file failed. Can't open the file. - + No se ha podido guardar la sesión en el archivo %1. +No se puede abrir el archivo. Effects collection read error - + Error de lectura de la colección de efectos Effects collection restoring from %1 file failed. Can't open the file. - + No se ha podido restablecer la colección de efectos del archivo %1. +No se puede abrir el archivo. Effects collection restoring from %1 file failed. Can't parse the file. - + No se ha podido restablecer la colección de efectos del archivo %1. +No se puede analizar el archivo. Effects collection restoring from %1 file failed. Invalid file format. - + No se ha podido restablecer la colección de efectos del archivo %1. +El formato de archivo no es válido. @@ -1291,279 +1355,279 @@ Black & white - + Blanco y negro Sepia - + Sepia Custom - + Personalizado Linear - + Lineal Radial - + Radial Conical - + Cónico ScrollArea - + Área de desplazamiento Add Image - + Añadir imagen Y Coordinate: - + Coordenada Y: X Coordinate: - + Coordenada X: Image File: - + Archivo de imagen: Image Rotation: - + Rotación de imagen: Position of: - + Posición de: Browse - Examinar + Examinar Opacity: - + Opacidad: Add Text - + Añadir texto Font Family: - + Tipo de letra: Text: - + Texto: Top left corner - + Esquina superior izquierda Middle of top edge - + Centro del borde superior Top right corner - + Esquina superior derecha Center - + Centro Middle of right edge - + Centro del borde derecho Bottom right corner - + Esquina inferior derecha Middle of bottom edge - + Centro del borde inferior Bottom left corner - + Esquina inferior izquierda Middle of left edge - + Centro del borde izquierdo Font Size: - + Tamaño de letra: Text in Frame - + Texto enmarcado Text Rotation: - + Rotación del texto: Font Color: - + Color de texto: Bold - + Negrita Italic - + Cursiva Underline - + Subrayada Strike out - + Tachada Add Frame - + Añadir marco Add Around - + Añadir alrededor Frame Width: - + Anchura de marco: Overlay - + Cubrir Frame Color: - + Color de marco: Inside Border - + Borde interior Width: - Anchura: + Anchura: Color: - + Color: Outside Border - + Borde exterior Filter - + Filtro Color - + Color Gradient filter - + Filtro de gradiente Color filter - + Filtro de color Histogram - + Histograma Stretch Histogram - + Estirar histograma Equalize Histogram - + Ecualizar histograma Gradient - + Gradiente Choose Image File - + Elegir archivo de imagen Images - Imágenes + Imágenes @@ -1571,29 +1635,29 @@ Check Exif metadata - + Comprobar metadatos Exif Camera model - + Modelo de cámara Processing Software - + Software de procesado Accepts regular expression - + Acepta expresión regular Camera manufacturer - + Fabricante de la cámara @@ -1601,97 +1665,97 @@ Artist - + Artista Copyright - + Copyright User Comment - + Comentario de usuario Camera manufacturer: - + Fabricante de la cámara: Camera model: - + Modelo de cámara: Exif Version - + Versión Exif Processing Software - + Software de procesado Orientation - + Orientación Generated Date and Time - + Día y hora de creación Digitized Date and Time - + Día y hora de digitalización Focal lenght - + Distancia focal Aperture - + Abertura Exposure time - + Tiempo de exposición Shutter Speed - + Velocidad de obturación Exposure bias - + Compensación de exposición ISO Speed - + Sensibilidad ISO Exposure program - + Programa de exposición Light metering mode - + Modo de medición de luz Flash mode - + Modo de flash @@ -1718,63 +1782,63 @@ File List Settings - + Preferencias de la lista de archivos Show columns - + Mostrar columnas Ext - Extensión + Extensión File size - + Tamaño de archivo Path - Ruta + Ruta Status - Estado + Estado Name - Nombre + Nombre Image size - + Tamaño de imagen Show all - + Mostrar todos Hide all - + Ocultar todos GeneralGroupBox Choose a directory - Elija un directorio + Elige un directorio Default Target Format: - Formato destino predeterminado: + Formato de destino predeterminado: Default Height: @@ -1814,97 +1878,97 @@ General Settings - + Preferencias generales Default Target Format: - Formato destino predeterminado: + Formato de destino predeterminado: Text history count: - + Cómputo del historial de texto: Default Size Unit: - + Unidad de tamaño predeterminada: Default Target Suffix: - + Sufijo de destino predeterminado: Default Height: - Altura predeterminada: + Altura predeterminada: Default Language: - Lenguaje predeterminada: + Idioma predeterminado: Default Width: - Anchura predeterminada: + Anchura predeterminada: Number of Cores: - Número de procesadores: + Número de procesadores: Default Target Folder: - Carpeta destino predeterminada: + Carpeta de destino predeterminada: Detect automatically - + Detectar automáticamente Time display format: - + Formato de hora: Date display format: - + Foramto de fecha: Default Target Prefix: - Prefijo destino predeterminado: + Prefijo de destino predeterminado: Default File Size: - + Tamaño de archivo predeterminado: Default Quality: - Calidad predeterminada: + Calidad predeterminada: Browse - Examinar + Examinar Maintain Aspect Ratio - + Mantener proporciones Choose a directory - Elija un directorio + Elige un directorio @@ -1912,47 +1976,47 @@ Stop point - + Punto de parada Type stop point value: - + Escribe el valor del punto de parada: Form - + Forma Remove item - + Borrar item Stop - + Parar Color - + Color Add item - + Añadir item Move up current item - + Subir el item actual Move down current item - + Bajar el item actual @@ -1960,28 +2024,29 @@ Remove item - + Borrar item Full text history - SIR - + Historial de texto completo - SIR Text history memory is full of favorite items. SIR can't automatically remove favorite item. Do it manually. - + La memoria del historial de texto está llena de items favoritos. +SIR no puede borrar el item favorito automáticamente. Hazlo manualmente. Throw away from favorite - + Quitar de los favoritos Mark as favorite - + Marcar como favorito @@ -1989,12 +2054,12 @@ Check IPTC metadata - + Comprobar metadatos IPTC City - + Ciudad @@ -2004,32 +2069,32 @@ Accepts regular expression - + Acepta expresión regular Object name - + Nombre de objeto Country - + País Edit status - + Editar estado Keywords - + Palabras clave Description - + Descripción @@ -2037,82 +2102,95 @@ Model version - + Versión del modelo Created date - + Día de creación Created time - + Hora de creación Digitized date - + Día de digitalización Digitized time - + Hora de digitalición Author - + Autor Copyright - + Copyright Object name - + Nombre de objeto Keywords - + Palabras clave Description - + Descripción Country - + País City - + Ciudad Edit status - + Editar estado MessageBox + &Yes - &Sí + &Sí + &No - &No + &No + Yes to &All - Sí a &todo + Sí a &todo + + + + N&o to All + + + + + &Cancel + @@ -2120,7 +2198,7 @@ Metadata - SIR - + Metadatos - SIR @@ -2128,575 +2206,577 @@ TextLabel - + Etiqueta de texto Exif - + Exif Image - + Imagen Exif Version - + Versión de Exif Processing Software - + Software de procesado Size - + Tamaño Width - + Anchura Height - + Altura Generated Date and Time - + Día y hora de creación Orientation - + Orientación Digitized Date and Time - + Día y hora de digitalización Thumbnail - + Miniatura Thumbnail Label - + Etiqueta de miniatura Photo - + Foto Exposure program - + Programa de exposición Light metering mode - + Modo de medición de la luz Flash mode - + Modo de flash Focal length - + Distancia focal Exposure time - + Tiempo de exposición Exposure bias - + Compensación de exposición mm - + mm 1/2000 s - + 1/2000 s 1/1600 s - + 1/1600 s 1/1250 s - + 1/1250 s 1/1000 s - + 1/1000 s 1/800 s - + 1/800 s 1/640 s - + 1/640 s 1/500 s - + 1/500 s 1/400 s - + 1/400 s 1/320 s - + 1/320 s 1/250 s - + 1/250 s 1/200 s - + 1/200 s 1/160 s - + 1/160 s 1/125 s - + 1/125 s 1/100 s - + 1/100 s 1/80 s - + 1/80 s 1/60 s - + 1/60 s 1/50 s - + 1/50 s 1/40 s - + 1/40 s 1/30 s - + 1/30 s 1/25 s - + 1/25 s 1/20 s - + 1/20 s 1/15 s - + 1/15 s 1/13 s - + 1/13 s 1/10 s - + 1/10 s 1/8 s - + 1/8 s 1/6 s - + 1/6 s 1/5 s - + 1/5 s 1/4 s - + 1/4 s 1/3 s - + 1/3 s 2/5 s - + 2/5 s 1/2 s - + 1/2 s 2/3 s - + 2/3 s 4/5 s - + 4/5 s 1 s - + 1 s 1 1/3 s - + 1/3 s 1 2/3 s - + 2/3 s 2 s - + 2 s 2 1/2 s - + 2 1/2 s 3 1/5 s - + 3 1/5 s 4 s - + 4 s 5 s - + 5 s 6 s - + 6 s 8 s - + 8 s 10 s - + 10 s 13 s - + 13 s 15 s - + 15 s EV - + Valor de exposición Aperture - + Abertura Shutter Speed - + Velocidad de obturación ISO Speed - + Sensibilidad ISO F - + F 1/2048 s - + 1/2048 s 1/1024 s - + 1/1024 s 1/512 s - + 1/512 s 1/256 s - + 1/256 s 1/128 s - + 1/128 s 1/64 s - + 1/64 s 1/32 s - + 1/32 s 1/16 s - + 1/16 s Camera - + Cámara Manufacturer - + Fabricante Model - + Modelo Author - + Autor Artist - + Artista Copyright - + Copyright User Comment - + Comentario de usuario IPTC - + IPTC Copyright: - + Copyright: Model version: - + Versión del modelo:> Country: - + País Digitized date: - + Día de digitalización Created date: - + Día de creación Keywords: - + Palabras clave Digitized time: - + Hora de digitalización Description: - + Descripción Created time: - + Hora de creación City: - + Ciudad Author: - + Autor Edit status: - + Estado de edición Object name: - + Nombre de objeto Save changes - + Guardar cambios Cancel - Cancelar + Cancelar Metadata error - + Error de metadatos Error code: %1 Error message: %2 - + +Código de error: %1 +Mensaje de error: %2 - Unexpected metadata read error occured. - + Unexpected metadata read error occurred. + Ha ocurrido un error inesperado de lectura de metadatos. No Exif and IPTC metadata. - + No hay metadatos Exif ni IPTC. No Exif metadata. - + No hay metadatos Exif. No IPTC metadata. - + No hay metadatos IPTC. Metadata warning - + Aviso de metadatos Delete metadata - + Borrar metadatos Do you really want to delete metadata from this image? - + ¿Seguro que quieres borrar los metadatos de esta imagen? @@ -2704,17 +2784,17 @@ Camera owner: ; Photographer: - + Propietario de la cámara: ; Fotógrafo: Copyright owner - + Propietario del copyright This picture was edited with Simple Image Resizer - + Esta imagen se ha editado con Simple Image Resizer @@ -2722,62 +2802,62 @@ Metadata Options - + Opciones de metadatos EXIF, IPTC and XMP supported - + Soportados EXIF, IPTC y XMP Enable metadata support - + Activar soporte de metadatos Save also metadata - + Guardar también matadatos Update thumbnail - + Actualizar miniatura Apply Exif Orientation tag to thumbnail - + Aplicar la etiqueta de orientación Exif a la miniatura When image is rotated - + Cuando la imagen se ha rotado rotate seriously - + rotar seriamente save orientation in Exif - + guardar orientación en Exif Overwrite Exif Artist - + Sobrescribir artistas Exif Overwrite Exif Copyright - + Sobrescribir copyright Exif Overwrite Exif User Comment - + Sobrescribir comentario de usuario @@ -2786,38 +2866,38 @@ Unknown - + Desconocido No rotation - + No rotar No rotation, flip verticaly - + No rotar, voltear verticalmente Rotation 180° - + Rotar 180° Rotation 180°, flip verticaly - + Rotar 180°, voltear verticalmente Clockwise rotation, flip horizontaly - + Rotar en sentido de las agujas del reloj, voltear horizontalmente Clockwise rotation - + Rotar en sentido de las agujas del reloj @@ -2827,88 +2907,88 @@ Counterclockwise rotation - + Rotar contra el sentido de las agujas del reloj Not defined - + Indefinido Manual - + Manual Auto - + Auto Aperture priority - + Prioridad a la abertura Shutter priority - + Prioridad a la velocidad Creative program (biased toward depth of field) - + Programa creativo (priorizando la profundidad de campo) Action program (biased toward fast shutter speed) - + Programa de acción (priorizando la velocidad de obturación alta) Portrait mode (for closeup photos with the background out of focus) - + Modo retrato (para fotos de cerca con el fondo borroso) Landscape mode (for landscape photos with the background in focus) - + Modo paisaje (para fotos de paisaje con el fondo enfocado) Average - + Media Center weighted average - + Promedio central Spot - + Punto Multi spot - + Multipunto Pattern - + Patrón Partial - + Parcial Other - + Otro @@ -2916,42 +2996,42 @@ No flash function. - + No función de flash Flash fired - + Flash disparado Flash didn't fire - + Flash no disparado , compulsory flash mode - + , modo de flash obligatorio , auto mode - + , modo auto , red-eye reduction - + , reducción de ojos rojos , strobe return light detected - + , luz de retorno estroboscópica detectada , strobe return light not detected - + , luz de retorno estroboscópica no detectada @@ -2960,17 +3040,17 @@ Error open file %1 - + Error al abrir el archivo %1 Write file %1 error - + Error al guardar el archivo %1 Save thumnail failed - + No se ha guardado la miniatura @@ -2978,7 +3058,7 @@ no data - + no datos @@ -2986,42 +3066,42 @@ General - + General File list - + Lista de archivos Metadata - + Metadatos File details - + Detalles del archivo Selection - + Selección Raw - + Raw Select a column - + Selecciona una columna Select at least 1 column to show in file list. - + Selecciona la menos una columna para mostrar la lista de archivos. @@ -3029,6 +3109,11 @@ Sir - Configurar opciones + + Ok + + + Sir - Options Sir - Opciones @@ -3077,12 +3162,13 @@ Aceptar + Cancel - Cancelar + Cancelar Choose a directory - Elija un directorio + Elige un directorio @@ -3090,17 +3176,17 @@ No flip - + No voltear Flip vertically - + Voltear verticalmente Flip horizontally - + Voltear horizontalmente @@ -3110,17 +3196,17 @@ Quality: - Calidad: + Calidad: Background Color - + Color de fondo Rotation Angle: - Ángulo de rotación: + Ángulo de rotación: @@ -3165,9 +3251,8 @@ Guardar imagen - - Save image as... - Guardar imagen como... + Save image as… + Guardar imagen como… @@ -3184,12 +3269,21 @@ Fit to window size + Ajustar al tamaño de la ventana + + + Print current image… + Imprimir imagen actual… + + + + Save image as... Print current image... - Imprimir imagen actual... + @@ -3224,13 +3318,14 @@ Unsupported file format - + Formato de archivo no soportado Write into %1 file is unsupported. Choose supported file extension: - + No está soportado escribir un archivo %1. +Elige una extensión de archivo soportada: @@ -3245,24 +3340,26 @@ Image file error - + Error de archivo de imagen Load image %1 failed - + No se ha podido cargar la imagen %1 Error code: %1 Error message: %2 - + +Código de error: %1 +Mensaje de error: %2 Metadata error! - + ¡Error de metadatos! @@ -3282,7 +3379,7 @@ TextLabel - + Etiqueta @@ -3290,22 +3387,22 @@ Select dcraw executable - + Elige dcraw ejecutable No dcraw executable chosen. RAW support will not be enabled! - + No se ha elegido un dcraw ejecutable. ¡No se activará el soporte RAW! The chosen file is not executable. RAW support will not be enabled! - + El archivo elegido no es ejecutable. ¡No se activará el soporte RAW! dcraw executable not found. RAW support will not be enabled! - + No se ha encontrado un dcraw ejecutable. ¡No se activará el soporte RAW! @@ -3320,7 +3417,7 @@ Raw Options - + Opciones Raw Browse @@ -3331,13 +3428,15 @@ RawTabWidget + Basic - + Básico + Advanced - + Avanzado @@ -3345,7 +3444,7 @@ Conditions of items selection - SIR - + Condiciones de la selección de items @@ -3353,11 +3452,6 @@ - - Conditions of import files - SIR - - - Checking import conditions... @@ -3368,9 +3462,26 @@ + Checking selection conditions… + Comprobando las condiciones de la selección… + + + + Conditions of import files - SIR + Condiciones para importar archivos + + + Checking import conditions… + Comprobando las condiciones de importación… + + + Scanning directories… + Escaneando directorios… + + Not converted yet - No convertido + Aún no se ha convertido @@ -3386,37 +3497,37 @@ Accepts regular expression - + Acepta expresión regular Clear current selection - + Borrar la selección actual Unselect items selected before this action - + Deseleccionar los items seleccionados antes de esta acción File name - + Nombre de archivo File size - + Tamaño de archivo Image size [px] - + Tamaño de imagen [px] Choose a directory - Elija un directorio + Elige un directorio @@ -3424,37 +3535,37 @@ Selection Options - + Opciones de selección Image width symbol - + Símbolo de anchura de imagen Select imported files - + Seleccionar archivos importados Clear current selection - + Borrar la selección actual Browse subdirectories - + Examinar subcarpetas Image height symbol - + Símbolo de altura de imagen File size symbol - + Símbolo de tamaño de archivo @@ -3462,38 +3573,41 @@ Session write error - + Error de escritura de sesión Session saving to %1 file failed. Can't open the file. - + No se ha podido guardar la sesión como archivo %1 Session read error - + Error de lectura de sesión Session restoring from %1 file failed. Can't open the file. - + No se ha podido restaurar la sesión desde el archivo %1. +No se puede abrir el archivo. Session restoring from %1 file failed. Can't parse the file. - + No se ha podido restaurar la sesión desde el archivo %1. +No se puede analizar el archivo. Session restoring from %1 file failed. Invalid file format. - + No se ha podido restaurar la sesión desde el archivo %1. +El formato de archivo no es válido. @@ -3501,68 +3615,72 @@ Choose unit - + Elige unidad Pixels (px) - + Píxeles (px) Percent (%) - + Porcentaje (%) Bytes (B) - + Bytes (B) &Maintain Aspect Ratio - &Mantener proporciones + &Mantener proporciones Alt+M - Alt+M + Alt+M Width: - Anchura: + Anchura: auto - + auto Height: - Altura: + Altura: Target File Size: - + Tamaño de archivo de destino: KiB - + KiB MiB - + MiB StatusWidget + Message… + Mensaje… + + Message... @@ -3570,23 +3688,23 @@ part - + parte of - + de total - + total Ready - + Preparado @@ -3604,9 +3722,21 @@ + Loading image details… + Cargando detalles de la imagen… + + + Loading files… + Cargando archivos… + + + Converting images… + Convirtiendo imágenes… + + %1 images converted in %2 seconds - + %1 imágenes convertidas en %2 segundos @@ -3614,17 +3744,17 @@ Remove Empty Groups - + Eliminar grupos vacíos Remove Text Elements - + Eliminar elementos de texto Save SVG File - + Guardar archivo SVG @@ -3632,118 +3762,118 @@ Choose a directory - Elija un directorio + Elige un directorio Images - Imágenes + Imágenes Select one or more files to open - Seleccione uno o más archivos a abrir + Selecciona uno o más archivos para abrir Converted - Convertida + Convertida Skipped - Esquivada + Ignorada Failed to convert - No se pudo convertir + No se ha podido convertir Not converted yet - No convertido + No convertido Converting - + Convirtiendo Cancelled - Cancelado + Cancelado Name - Nombre + Nombre Ext - Extensión + Extensión Path - Ruta + Ruta Image size - + Tamaño de imagen File size - + Tamaño de archivo Status - Estado + Estado Remove Selected - Eliminar seleccionadas + Eliminar seleccionadas Remove selected images - + Eliminar imágenes seleccionadas Convert Selected - Convertir seleccionadas + Convertir seleccionadas Convert selected images - + Convertir imágenes seleccionadas Show Image - + Mostrar imagen Show preview selected image - + Ver vista previa de la imagen seleccionada Show Metadata - + Mostrar metadatos Show metadata of selected image - + Mostrar metadatos de la imagen seleccionada diff -Nru sir-3.1/src/translations/sir_fr.ts sir-3.2/src/translations/sir_fr.ts --- sir-3.1/src/translations/sir_fr.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_fr.ts 2018-02-04 19:17:01.000000000 +0000 @@ -408,7 +408,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -438,7 +438,7 @@ - You alread sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! @@ -632,7 +632,7 @@ Oui pour &Tous - + Cancelled Annulé @@ -647,7 +647,7 @@ - + Add &Dir... Ajouter le &Répertoire... @@ -660,12 +660,12 @@ E&ffacer tout - + Target Folder: Répertoire de destination: - + Target Prefix: Préfixe de la cible: @@ -674,12 +674,12 @@ hauteur: - + &Browse &Parcourir - + Alt+B Alt+E @@ -689,7 +689,7 @@ - + Add &File... Ajouter F&ichier... @@ -704,18 +704,18 @@ - - + + Remove All - + &Quit &Quitter - + Options Options @@ -736,17 +736,17 @@ Qualitée: - + &Convert Selected &Convertir la sélection - + Alt+C Alt+C - + Convert &All Convertir &tout @@ -761,95 +761,96 @@ - + + + Remove all files from the list + + + + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Alt+A Alt+T - + Actions Actions - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... @@ -858,45 +859,45 @@ Fichier - + About A propos - + Edit Editer - + Session - - + + Quit Quitter - + &Options &Options - + Alt+O - + About Sir... A propos de Sir... - + About Qt... A propos de Qt... @@ -917,7 +918,7 @@ Statut - + Converted Convertis @@ -938,63 +939,63 @@ - + Failed to open original image Impossible d'ouvrir l'image originale - - - - + + + + Converted Convertis - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Annulé - - + + Failed to convert Echec de conversion @@ -1003,11 +1004,11 @@ Echec de conversion - - - - - + + + + + Skipped Ignorés @@ -2095,16 +2096,29 @@ MessageBox + &Yes - &Oui + &Oui + &No - &Non + &Non + Yes to &All - Oui pour &Tous + Oui pour &Tous + + + + N&o to All + + + + + &Cancel + @@ -2656,7 +2670,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3021,6 +3035,11 @@ Sir - Configurer options + + Ok + + + Sir - Options Sir - Options @@ -3065,8 +3084,9 @@ Accepter + Cancel - Annuler + Annuler Default Language @@ -3323,11 +3343,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_gr.ts sir-3.2/src/translations/sir_gr.ts --- sir-3.1/src/translations/sir_gr.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_gr.ts 2018-02-04 19:17:01.000000000 +0000 @@ -392,7 +392,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -418,7 +418,7 @@ - + Add &Dir... Προσθήκη &Καταλόγου... @@ -431,12 +431,12 @@ Αφαίρεση Ό&λων - + Target Folder: Φάκελος Μετατροπής: - + Target Prefix: Πρόθεμα νέου αρχείου: @@ -445,7 +445,7 @@ Ύψος: - + &Browse Αναζήτηση @@ -455,7 +455,7 @@ - + Add &File... Προσθήκη Αρχείου... @@ -470,18 +470,18 @@ - - + + Remove All - + &Quit Έ&ξοδος - + Options Επιλογές @@ -498,12 +498,12 @@ Ποιότητα: - + &Convert Selected Μετατροπή Επιλεγμένων - + Convert &All Μετατροπή Όλων @@ -523,105 +523,106 @@ - + + + Remove all files from the list + + + + Alt+B - + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Alt+A - + Alt+C - + Actions Ενέργειες - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... @@ -630,45 +631,45 @@ Αρχείο - + About Σχετικά - + Edit Επεξεργασία - + Session - - + + Quit Έξοδος - + &Options Επιλ&ογές - + Alt+O - + About Sir... Σχετικά με το Sir... - + About Qt... Σχετικά με την Qt... @@ -682,7 +683,7 @@ - You alread sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! @@ -892,7 +893,7 @@ Κατάσταση - + Converted Μετατράπηκε @@ -905,7 +906,7 @@ Αδυναμία μετατροπής - + Cancelled Ακυρώθηκε @@ -918,72 +919,72 @@ - + Failed to open original image Αποτυχία ανοίγματος πρωτότυπης εικόνας - - - - + + + + Converted Μετατράπηκε - - + + Failed to convert Αδυναμία μετατροπής - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Ακυρώθηκε - - - - - + + + + + Skipped Παραβλέφτηκε @@ -2079,16 +2080,29 @@ MessageBox + &Yes - &Ναι + &Ναι + &No - &Όχι + &Όχι + Yes to &All - Ναι σε Όλ&α + Ναι σε Όλ&α + + + + N&o to All + + + + + &Cancel + @@ -2640,7 +2654,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3005,6 +3019,11 @@ Sir - Ρύθμιση παραμέτρων + + Ok + + + Sir - Options Sir - Επιλογές @@ -3069,8 +3088,9 @@ Εντάξει + Cancel - Άκυρο + Άκυρο Choose a directory @@ -3416,11 +3436,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_hu_HU.ts sir-3.2/src/translations/sir_hu_HU.ts --- sir-3.1/src/translations/sir_hu_HU.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_hu_HU.ts 2018-02-04 19:17:01.000000000 +0000 @@ -408,7 +408,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -438,7 +438,7 @@ - You alread sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! @@ -590,7 +590,7 @@ A fájl %1 már létezik. Felül akarja írni? - + Cancelled @@ -643,33 +643,33 @@ - - + + Remove All - + &Quit &Kilépés - + &Convert Selected A &kiválasztottak konvetálása - + Alt+C ALT+C - + Convert &All &Az összes konvertálása - + Alt+A ALT+A @@ -679,7 +679,7 @@ - + Add &Dir... Könyvtár &hozzáadása... @@ -692,12 +692,12 @@ Az összes eltávolítá&sa - + Target Folder: Cél könyvtár: - + Target Prefix: Cél előtag: @@ -706,12 +706,12 @@ Magasság: - + &Browse &Tallózás - + Alt+B ALT+B @@ -721,12 +721,12 @@ - + Add &File... Fájl hoz&záadása... - + Options Beállítások @@ -751,12 +751,12 @@ Fájl - + Edit Szerkesztés - + About Súgó @@ -771,123 +771,124 @@ - + + + Remove all files from the list + + + + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Actions Események - + Session - - + + Quit Kilépés - + &Options &Beállítások - + Alt+O - + About Sir... A SIR-ről... - + About Qt... A QT-ról... - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... @@ -917,7 +918,7 @@ Státusz - + Converted Konvertálva @@ -938,63 +939,63 @@ - + Failed to open original image - - - - + + + + Converted Konvertálva - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled - - + + Failed to convert A konvertálás sikertelen @@ -1003,11 +1004,11 @@ A konvertálás sikertelen - - - - - + + + + + Skipped Átugorva @@ -2095,16 +2096,29 @@ MessageBox + &Yes - &Igen + &Igen + &No - &Nem + &Nem + Yes to &All - &Igen mindre + &Igen mindre + + + + N&o to All + + + + + &Cancel + @@ -2656,7 +2670,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3021,6 +3035,11 @@ SIR - Beállítások + + Ok + + + SIR - Options SIR - Beállítások @@ -3029,8 +3048,9 @@ OK + Cancel - Mégse + Mégse Sir - Options @@ -3315,11 +3335,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_nl.ts sir-3.2/src/translations/sir_nl.ts --- sir-3.1/src/translations/sir_nl.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_nl.ts 2018-02-04 19:17:01.000000000 +0000 @@ -400,7 +400,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -430,7 +430,7 @@ - You alread sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! @@ -582,7 +582,7 @@ Dit bestaat %1 reeds. Overschrijven? - + Cancelled @@ -647,23 +647,23 @@ - - + + Remove All - + &Quit &Stoppen - + &Convert Selected &Keuze bewerken - + Convert &All Alles &bewerken @@ -673,7 +673,7 @@ - + Add &Dir... Betekenis &toevoegen... @@ -686,12 +686,12 @@ A&lles verwijderen - + Target Folder: Doel map: - + Target Prefix: Doel Prefix: @@ -700,7 +700,7 @@ Hoogte: - + &Browse &Zoeken @@ -710,12 +710,12 @@ - + Add &File... &Image toevoegen ... - + Options Optie's @@ -736,12 +736,12 @@ File - + Edit Bewerken - + About Help @@ -756,143 +756,144 @@ - + + + Remove all files from the list + + + + Alt+B - + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Alt+A - + Alt+C - + Actions Aktie's - + Session - - + + Quit Stoppen - + &Options &Optie' s - + Alt+O - + About Sir... Over SIR... - + About Qt... Over Qt... - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Converted umgewandelt @@ -938,63 +939,63 @@ - + Failed to open original image - - - - + + + + Converted Bewerkt - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled - - + + Failed to convert umwandeln gescheitert @@ -1003,11 +1004,11 @@ Bewerken niet gelukt - - - - - + + + + + Skipped Overgelsagen @@ -2091,12 +2092,29 @@ MessageBox + &Yes - &Ja + &Ja + + &No + + + + Yes to &All - Ja voor &alles + Ja voor &alles + + + + N&o to All + + + + + &Cancel + @@ -2648,7 +2666,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3013,6 +3031,11 @@ SIR - Instellingen + + Ok + + + SIR - Options SIR - Optie's @@ -3021,8 +3044,9 @@ OK + Cancel - Afbreken + Afbreken Sir - Options @@ -3315,11 +3339,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_pl.ts sir-3.2/src/translations/sir_pl.ts --- sir-3.1/src/translations/sir_pl.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_pl.ts 2018-02-04 19:17:01.000000000 +0000 @@ -532,7 +532,7 @@ Remove all filles the files list - Usuń wszystkie pliki z listy plików + Usuń wszystkie pliki z listy plików File @@ -600,7 +600,7 @@ You alread sent information about your SIR installation. Thank you very much! - Już wysłałeś informację o Twojej instalacji SIR. Dziękujemy! + Już wysłałeś informację o Twojej instalacji SIR. Dziękujemy! IMPORTANT: this action will not send any private data about you or your computer to SIR developers! It will only update a counter of unique installations of SIR. @@ -752,6 +752,14 @@ Raw Raw + + Remove all files from the list + + + + You already sent information about your SIR installation. Thank you very much! + + ConvertThread @@ -2042,6 +2050,29 @@ + MessageBox + + &Yes + &Tak + + + &No + &Nie + + + Yes to &All + Tak dla &wszystkich + + + N&o to All + Ni&e dla wszystkich + + + &Cancel + &Anuluj + + + MetadataDialog Metadata - SIR @@ -2476,7 +2507,7 @@ Informacja: %2 - Unexpected metadata read error occured. + Unexpected metadata read error occurred. Wystąpił nieoczekiwany błąd odczytu metadanych. @@ -2835,6 +2866,14 @@ Raw Raw + + Ok + Ok + + + Cancel + Anuluj + OptionsScrollArea diff -Nru sir-3.1/src/translations/sir_pt_BR.ts sir-3.2/src/translations/sir_pt_BR.ts --- sir-3.1/src/translations/sir_pt_BR.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_pt_BR.ts 2018-02-04 19:17:01.000000000 +0000 @@ -524,7 +524,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -545,9 +545,13 @@ ConvertDialog - You alread sent information about your SIR installation. Thank you very much! - Você já enviou informações sobre sua instalação do SIR. Muito Obrigado! + Você já enviou informações sobre sua instalação do SIR. Muito Obrigado! + + + + You already sent information about your SIR installation. Thank you very much! + @@ -669,7 +673,7 @@ Convertendo - + Cancelled Cancelado @@ -716,12 +720,12 @@ Remove as imagens selecionadas - + &Quit &Sair - + &Convert Selected &Converter Selecionadas @@ -736,13 +740,13 @@ - - + + Remove All - + Convert &All Converter &Todos @@ -752,7 +756,7 @@ - + Add &Dir... Adicionar &Diretório... @@ -765,12 +769,12 @@ Remover T&odos - + Target Folder: Diretório de Saída: - + Target Prefix: Prefixo da Saída: @@ -779,7 +783,7 @@ Altura: - + &Browse A&brir @@ -789,12 +793,12 @@ - + Add &File... Adicionar &Arquivo... - + Options Opções @@ -811,12 +815,12 @@ Qualidade: - + Check for updates... Verificar atualizações... - + Let us know that you are using SIR... Conte para nós que você usa o SIR... @@ -825,21 +829,20 @@ Conte para nós que você usa o Sir... - Remove all filles the files list - Remove todos os arquivos da list + Remove todos os arquivos da list File Arquivo - + Edit Editar - + About Sobre @@ -859,128 +862,134 @@ - + + + Remove all files from the list + + + + Alt+B - + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Alt+A - + Alt+C - + Actions Ações - + Session - - + + Quit Sair - + &Options &Opções - + Alt+O - + About Sir... Sobre Sir... - + About Qt... Sobre Qt... - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Converted Convertido @@ -1096,63 +1105,63 @@ Convertendo - + Failed to open original image Erro ao abrir a imagem original - - - - + + + + Converted Convertido - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Cancelado - - + + Failed to convert Falha na conversão @@ -1161,11 +1170,11 @@ Falha na conversão - - - - - + + + + + Skipped Pulado @@ -2261,16 +2270,29 @@ MessageBox + &Yes - &Sim + &Sim + &No - &Não + &Não + Yes to &All - Sim para &Todos + Sim para &Todos + + + + N&o to All + + + + + &Cancel + @@ -2822,7 +2844,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3187,6 +3209,11 @@ Sir - Opções de configuração + + Ok + + + SIR - Options SIR - Opções @@ -3195,8 +3222,9 @@ Habilitar suporte à imagens RAW + Cancel - Cancelar + Cancelar Sir - Options @@ -3610,11 +3638,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_ro_RO.ts sir-3.2/src/translations/sir_ro_RO.ts --- sir-3.1/src/translations/sir_ro_RO.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_ro_RO.ts 2018-02-04 19:17:01.000000000 +0000 @@ -400,7 +400,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -430,7 +430,7 @@ - You alread sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! @@ -586,7 +586,7 @@ Da la &tot - + Cancelled Anulate @@ -647,33 +647,33 @@ - - + + Remove All - + &Quit &Renuntare - + &Convert Selected &Convesteste imaginea selectata - + Alt+C Alt+C - + Convert &All Converteste &toate imaginile - + Alt+A Alt+A @@ -683,7 +683,7 @@ - + Add &Dir... Adaugare &Dir... @@ -696,12 +696,12 @@ I&nlatura tot - + Target Folder: Folder tinta: - + Target Prefix: Prefix convertite: @@ -710,12 +710,12 @@ Inaltime: - + &Browse &Rasfoire - + Alt+B Alt+B @@ -725,12 +725,12 @@ - + Add &File... Adauga &fisiere ... - + Options Optiuni @@ -755,12 +755,12 @@ Fisiere - + Edit Editare - + About Despre @@ -775,128 +775,129 @@ - + + + Remove all files from the list + + + + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Actions Actiuni - + Session - - + + Quit Iesire - + &Options &Optiuni - + Alt+O - + About Sir... Despre SIR... - + About Qt... Despre Qt... - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Converted Convertit @@ -950,63 +951,63 @@ - + Failed to open original image - - - - + + + + Converted Convertită - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Anulate - - + + Failed to convert Esuare la convertire @@ -1015,11 +1016,11 @@ Esuare la convertire - - - - - + + + + + Skipped Scapat @@ -2103,16 +2104,29 @@ MessageBox + &Yes - &Da + &Da + &No - &Nu + &Nu + Yes to &All - Da la &tot + Da la &tot + + + + N&o to All + + + + + &Cancel + @@ -2664,7 +2678,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3029,12 +3043,18 @@ SIR - Optiuni configurare + + Ok + + + OK OK + Cancel - Renuntare + Renuntare Sir - Options @@ -3308,11 +3328,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_ru_RU.ts sir-3.2/src/translations/sir_ru_RU.ts --- sir-3.1/src/translations/sir_ru_RU.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_ru_RU.ts 2018-02-04 19:17:01.000000000 +0000 @@ -434,7 +434,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -455,9 +455,8 @@ ConvertDialog - You alread sent information about your SIR installation. Thank you very much! - Вы уже отправляли информацию об установке SIR. Большое спасибо! + Вы уже отправляли информацию об установке SIR. Большое спасибо! @@ -579,7 +578,7 @@ Конвертирование - + Cancelled Отменен @@ -640,33 +639,33 @@ - - + + Remove All - + &Quit &Выход - + &Convert Selected &Конвертировать выбранное - + Alt+C Alt+C - + Convert &All Конвертировать &всё - + Alt+A Alt+A @@ -676,7 +675,7 @@ - + Add &Dir... &Добавить директорию... @@ -689,12 +688,12 @@ Удалить &всё - + Target Folder: Целевая директория: - + Target Prefix: Целевой префикс: @@ -703,12 +702,12 @@ Высота: - + &Browse &Выбрать - + Alt+B Alt+B @@ -718,12 +717,12 @@ - + Add &File... Добавить &файл... - + Options Настройки @@ -744,31 +743,30 @@ Качество: - + Check for updates... Проверить обновления... - + Let us know that you are using SIR... Сообщить об использовании программы... - Remove all filles the files list - Удалить все файлы из списка + Удалить все файлы из списка File Файл - + Edit Правка - + About О программе @@ -783,113 +781,119 @@ - + + + Remove all files from the list + + + + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Actions Действия - + Session - - + + Quit Выход - + &Options &Настройки - + Alt+O - + About Sir... О Sir... - + About Qt... О Qt... - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Converted Skonvertovane @@ -914,6 +918,11 @@ Дайте нам знать! + + You already sent information about your SIR installation. Thank you very much! + + + Go for it! Обновить! @@ -984,63 +993,63 @@ Конвертирование - + Failed to open original image Невозможно открыть оригинальное изображение - - - - + + + + Converted Сконвертировано - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Отменен - - + + Failed to convert Не удалось сконвертировать @@ -1049,11 +1058,11 @@ Не удалось сконвертировать - - - - - + + + + + Skipped Пропущено @@ -2145,16 +2154,29 @@ MessageBox + &Yes - &Да + &Да + &No - &Нет + &Нет + Yes to &All - Да для &всех + Да для &всех + + + + N&o to All + + + + + &Cancel + @@ -2706,7 +2728,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3071,6 +3093,11 @@ Sir - Настройки + + Ok + + + SIR - Options SIR - Настройки @@ -3083,8 +3110,9 @@ OK + Cancel - Отмена + Отмена Sir - Options @@ -3460,11 +3488,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_sk.ts sir-3.2/src/translations/sir_sk.ts --- sir-3.1/src/translations/sir_sk.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_sk.ts 2018-02-04 19:17:01.000000000 +0000 @@ -464,7 +464,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -494,7 +494,7 @@ - You alread sent information about your SIR installation. Thank you very much! + You already sent information about your SIR installation. Thank you very much! @@ -650,7 +650,7 @@ Án&o pre všetky - + Cancelled Zrušený @@ -711,33 +711,33 @@ - - + + Remove All - + &Quit &Ukončiť - + &Convert Selected &Konvertovať vybrané - + Alt+C Alt+C - + Convert &All Konvertovať &všetky - + Alt+A Alt+A @@ -747,7 +747,7 @@ - + Add &Dir... &Pridať adresár... @@ -760,12 +760,12 @@ Od&strániť všetky - + Target Folder: Cieľový adresár: - + Target Prefix: Predpona cieľa: @@ -774,12 +774,12 @@ Výška: - + &Browse &Listovať - + Alt+B Alt+B @@ -789,12 +789,12 @@ - + Add &File... Pridať &súbor... - + Options Voľby @@ -819,12 +819,12 @@ Súbor - + Edit Upraviť - + About Pomoc @@ -839,128 +839,129 @@ - + + + Remove all files from the list + + + + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Actions Akcie - + Session - - + + Quit Ukončiť - + &Options &Voľby - + Alt+O - + About Sir... O SIR... - + About Qt... O Qt... - + Check for updates... - + Let us know that you are using SIR... - - Remove all filles the files list - - - - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Converted Skonvertované @@ -1010,63 +1011,63 @@ - + Failed to open original image - - - - + + + + Converted Skonvertované - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Cancelled Zrušený - - + + Failed to convert Nepodarilo sa skonvertovať @@ -1075,11 +1076,11 @@ Nepodarilo sa skonvertovať - - - - - + + + + + Skipped Preskočené @@ -2167,16 +2168,29 @@ MessageBox + &Yes - Án&o + Án&o + &No - &Nie + &Nie + Yes to &All - Án&o pre všetky + Án&o pre všetky + + + + N&o to All + + + + + &Cancel + @@ -2728,7 +2742,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3093,6 +3107,11 @@ SIR - Nastaviť voľby + + Ok + + + SIR - Options SIR - Voľby @@ -3101,8 +3120,9 @@ OK + Cancel - Zrušiť + Zrušiť Sir - Options @@ -3391,11 +3411,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/translations/sir_sr.ts sir-3.2/src/translations/sir_sr.ts --- sir-3.1/src/translations/sir_sr.ts 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/translations/sir_sr.ts 2018-02-04 19:17:01.000000000 +0000 @@ -400,7 +400,7 @@ CommandLineAssistant - + Usage: sir [options] [files] Typed files will load to files list in main window. @@ -421,9 +421,8 @@ ConvertDialog - You alread sent information about your SIR installation. Thank you very much! - Већ сте послали информације о вашој SIR инсталацији.Пуно Вам хвала! + Већ сте послали информације о вашој SIR инсталацији.Пуно Вам хвала! @@ -545,7 +544,7 @@ Конвертовање - + Cancelled Отказано @@ -594,33 +593,33 @@ - - + + Remove All - + &Quit &Напусти - + &Convert Selected &Конвертуј одабрано - + Alt+C Alt+C - + Convert &All Конвертуј &Све - + Alt+A Alt+A @@ -630,7 +629,7 @@ - + Add &Dir... Додај &Дир... @@ -643,12 +642,12 @@ Уклони Св&е - + Target Folder: Циљни фолдер: - + Target Prefix: Циљни префикс: @@ -657,12 +656,12 @@ Висина: - + &Browse &Претражи - + Alt+B Alt+B @@ -672,12 +671,12 @@ - + Add &File... Додај &фајл... - + Options Опције @@ -698,32 +697,31 @@ Квалитет: - + Check for updates... Провери за надоградњу... - + Let us know that you are using SIR... Допустите нам да знамо да ли користите SIR... - Remove all filles the files list - Уклони све фајлове, листу фајлова + Уклони све фајлове, листу фајлова - + Edit Уреди - + About О програму - + Actions Акције @@ -738,108 +736,114 @@ - + + + Remove all files from the list + + + + Target Suffix: - + Target Format: - + Size - - + + Effects - + Raw - + Session - - + + Quit Напусти - + &Options &Опције - + Alt+O - + About Sir... О програму SIR... - + About Qt... О Qt-u... - + Ctrl+Del - + &Select... - + Do advanced selection of images on list - + Alt+S - + &Import files... - + Alt+I - - + + Restore... - - + + Save... - + Converted Конвертовано @@ -860,6 +864,11 @@ Дозволите нам да знамо! + + You already sent information about your SIR installation. Thank you very much! + + + Go for it! Уради то! @@ -926,11 +935,11 @@ ConvertThread - - - - - + + + + + Cancelled Отказано @@ -940,62 +949,62 @@ Конвертовање - + Failed to open original image Грешка при отварању оригиналне слике - - - - + + + + Converted Конвертовано - - + + Failed to convert Грешка при конверзији - + Error code: - - + + Failed to compute image size - - + + Failed to save - + Failed to save new SVG file - + Failed to open changed SVG file - + Failed to open SVG file - - - - - + + + + + Skipped Прескочено @@ -2091,16 +2100,29 @@ MessageBox + &Yes - &Да + &Да + &No - &Не + &Не + Yes to &All - Да у &Потпуности + Да у &Потпуности + + + + N&o to All + + + + + &Cancel + @@ -2652,7 +2674,7 @@ - Unexpected metadata read error occured. + Unexpected metadata read error occurred. @@ -3017,6 +3039,11 @@ SIR - Опције Подешавања + + Ok + + + SIR - Options SIR - Опције @@ -3029,8 +3056,9 @@ Уреду + Cancel - Откажи + Откажи Default Target Folder: @@ -3402,11 +3430,13 @@ RawTabWidget + Basic + Advanced diff -Nru sir-3.1/src/Version.hpp sir-3.2/src/Version.hpp --- sir-3.1/src/Version.hpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/Version.hpp 2018-02-04 19:17:01.000000000 +0000 @@ -25,7 +25,7 @@ #include #include -#define VERSION "3.1" +#define VERSION "3.2" //! SIR version information class. diff -Nru sir-3.1/src/widgets/AboutDialog.cpp sir-3.2/src/widgets/AboutDialog.cpp --- sir-3.1/src/widgets/AboutDialog.cpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/widgets/AboutDialog.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -60,7 +60,7 @@ + htmlTableRow(tr("German"), "Michael Kruger") + htmlTableRow(tr("Portuguese"), "Rafael Sachetto") + htmlTableRow(tr("Slovak"), "Jozef Riha") - + htmlTableRow(tr("Spanish"), "Víctor Fernández Martínez, Garbage Collector") + + htmlTableRow(tr("Spanish"), "Víctor Fernández Martínez, Garbage Collector, José M. Ciordia") + htmlTableRow(tr("Russian"), "Renat Gar, касьянъ, Timur Antipin") + htmlTableRow(tr("Hungarian"), "Kopiás Csaba") + htmlTableRow(tr("Polish"), "zoteek, Marek Jędryka") diff -Nru sir-3.1/src/widgets/ConvertDialog.cpp sir-3.2/src/widgets/ConvertDialog.cpp --- sir-3.1/src/widgets/ConvertDialog.cpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/widgets/ConvertDialog.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -202,7 +202,7 @@ if(alreadySent) { QMessageBox::information(this, tr("Let us know!"), - tr("You alread sent information about your " \ + tr("You already sent information about your " \ "SIR installation. Thank you very much!") ); diff -Nru sir-3.1/src/widgets/ConvertDialog.ui sir-3.2/src/widgets/ConvertDialog.ui --- sir-3.1/src/widgets/ConvertDialog.ui 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/widgets/ConvertDialog.ui 2018-02-04 19:17:01.000000000 +0000 @@ -166,6 +166,9 @@ 16777215 + + Remove all files from the list + Remove All @@ -423,7 +426,7 @@ 0 0 843 - 25 + 22 @@ -533,7 +536,7 @@ Remove All - Remove all filles the files list + Remove all files from the list Ctrl+Del @@ -632,6 +635,7 @@ + diff -Nru sir-3.1/src/widgets/MessageBox.cpp sir-3.2/src/widgets/MessageBox.cpp --- sir-3.1/src/widgets/MessageBox.cpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/widgets/MessageBox.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -21,10 +21,18 @@ #include "widgets/MessageBox.hpp" +#include + + bool MessageBox::testingEnabled = false; int MessageBox::warningStandardButton = QMessageBox::Ok; +MessageBox::MessageBox(QMessageBox::Icon icon, const QString &title, + const QString &text, QMessageBox::StandardButtons buttons, + QWidget *parent) + : QMessageBox(icon, title, text, buttons, parent) {} + void MessageBox::enableTesting(bool enabled) { MessageBox::testingEnabled = enabled; } @@ -37,7 +45,16 @@ } /** Shows question message containing \a text message and \a title titled window. */ -int MessageBox::question(QWidget *parent, const QString &title, const QString &text) { - return QMessageBox::question(parent, title, text, - Yes | No | YesToAll | NoToAll | Cancel, No); +int MessageBox::question(QWidget *parent, const QString &title, const QString &text) +{ + StandardButtons buttons = Yes | No | YesToAll | NoToAll | Cancel; + MessageBox messageBox(Question, title, text, buttons, parent); + + messageBox.button(Yes)->setText(tr("&Yes")); + messageBox.button(No)->setText(tr("&No")); + messageBox.button(YesToAll)->setText(tr("Yes to &All")); + messageBox.button(NoToAll)->setText(tr("N&o to All")); + messageBox.button(Cancel)->setText(tr("&Cancel")); + + return messageBox.exec(); } diff -Nru sir-3.1/src/widgets/MessageBox.hpp sir-3.2/src/widgets/MessageBox.hpp --- sir-3.1/src/widgets/MessageBox.hpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/widgets/MessageBox.hpp 2018-02-04 19:17:01.000000000 +0000 @@ -32,6 +32,9 @@ Q_OBJECT public: + MessageBox(Icon icon, const QString &title, const QString &text, + StandardButtons buttons = NoButton, QWidget * parent = 0); + static void enableTesting(bool enabled); static int warning(QWidget *parent, const QString &title, const QString &text); static int question(QWidget *parent, const QString &title, const QString &text); diff -Nru sir-3.1/src/widgets/MetadataDialog.cpp sir-3.2/src/widgets/MetadataDialog.cpp --- sir-3.1/src/widgets/MetadataDialog.cpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/widgets/MetadataDialog.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -197,7 +197,7 @@ Exiv2::Image::AutoPtr image = metadata->imageAutoPtr(); if (image.get() == 0) { QMessageBox::critical(this, errorTitle, - tr("Unexpected metadata read error occured.")); + tr("Unexpected metadata read error occurred.")); return; } QString message; diff -Nru sir-3.1/src/widgets/OptionsDialog.cpp sir-3.2/src/widgets/OptionsDialog.cpp --- sir-3.1/src/widgets/OptionsDialog.cpp 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/src/widgets/OptionsDialog.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -298,5 +298,7 @@ buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal, this); buttonBox->setObjectName("buttonBox"); + buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Ok")); + buttonBox->button(QDialogButtonBox::Cancel)->setText(tr("Cancel")); verticalLayout->addWidget(buttonBox); } diff -Nru sir-3.1/tests/CMakeLists.txt sir-3.2/tests/CMakeLists.txt --- sir-3.1/tests/CMakeLists.txt 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/tests/CMakeLists.txt 2018-02-04 19:17:01.000000000 +0000 @@ -43,6 +43,13 @@ target_link_libraries( sir_converteffects_test ${sir_UT_LINKING_LIBS} ) add_test( NAME "ConvertEffects_UT" COMMAND sir_converteffects_test ) +set( sir_UT_convertthread_SRCS + ConvertThreadTest.cpp + ) +add_executable( sir_convertthread_test ${sir_UT_convertthread_SRCS} ) +target_link_libraries( sir_convertthread_test ${sir_UT_LINKING_LIBS} ) +add_test( NAME "ConvertThread_UT" COMMAND sir_convertthread_test ) + set( sir_UT_languageutils_SRCS LanguageUtilsTest.cpp ) diff -Nru sir-3.1/tests/ConvertThreadTest.cpp sir-3.2/tests/ConvertThreadTest.cpp --- sir-3.1/tests/ConvertThreadTest.cpp 1970-01-01 00:00:00.000000000 +0000 +++ sir-3.2/tests/ConvertThreadTest.cpp 2018-02-04 19:17:01.000000000 +0000 @@ -0,0 +1,162 @@ +/* This file is part of SIR, an open-source cross-platform Image tool + * 2007-2010 Rafael Sachetto + * 2011-2016 Marek Jędryka + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Program URL: http://marek629.github.io/SIR/ + */ + +#include "ConvertThreadTest.hpp" + +#include +#include +#include + + +ConvertThreadTest::ConvertThreadTest() {} + +void ConvertThreadTest::initTestCase() {} + +void ConvertThreadTest::cleanupTestCase() +{ + QFileInfoList removedFileInfoList; + + foreach (QFileInfo fileInfo, createdFileInfoList) { + QFile file(fileInfo.absoluteFilePath()); + if (file.remove()) { + removedFileInfoList << fileInfo; + } + } + + QCOMPARE(removedFileInfoList.length(), createdFileInfoList.length()); +} + +void ConvertThreadTest::test_fillImage_data() +{ + QTest::addColumn("color"); + QTest::addColumn("format"); + QTest::addColumn("expected"); + + QTest::newRow("valid background color") + << QColor(Qt::red) << "" << QColor(Qt::red); + QTest::newRow("invalid background color, GIF image format") + << QColor() << "gif" << QColor(Qt::transparent); + QTest::newRow("invalid background color, PNG image format") + << QColor() << "png" << QColor(Qt::transparent); + QTest::newRow("invalid background color, other image format") + << QColor() << "bmp" << QColor(Qt::white); +} + +void ConvertThreadTest::test_fillImage() +{ + QImage testImage(10, 20, QImage::Format_ARGB32); + + QFETCH(QColor, color); + QFETCH(QString, format); + QFETCH(QColor, expected); + + SharedInformation sharedInfo; + sharedInfo.backgroundColor = color; + sharedInfo.format = format; + ConvertThread::setSharedInfo(sharedInfo); + + ConvertThread thread(this, 1); + + thread.fillImage(&testImage); + + QCOMPARE(testImage.pixel(1,1), expected.rgba()); +} + +void ConvertThreadTest::test_loadImage_data() +{ + QImage testImage(10, 20, QImage::Format_ARGB32); + testImage.fill(Qt::transparent); + QPainter painter; + painter.begin(&testImage); + painter.setPen(Qt::black); + painter.setBrush(Qt::SolidPattern); + painter.fillRect(5, 10, 5, 10, Qt::black); + painter.end(); + QString tempFileNamePattern("%1%2%3"); + tempFileNamePattern = tempFileNamePattern.arg(QDir::tempPath(), + QDir::separator()); + + QTemporaryFile pngTempFile(tempFileNamePattern.arg("sir-XXXXXX.png")); + pngTempFile.setAutoRemove(false); + testImage.save(&pngTempFile, "PNG"); + QFileInfo pngTempFileInfo(pngTempFile); + createdFileInfoList << pngTempFileInfo; + + QTemporaryFile regularTempFile(tempFileNamePattern.arg("sir-XXXXXX.bmp")); + regularTempFile.setAutoRemove(false); + testImage.save(®ularTempFile); + QFileInfo regularTempFileInfo(regularTempFile); + createdFileInfoList << regularTempFileInfo; + + QTest::addColumn("isRawImage"); + QTest::addColumn("isSvgImage"); + QTest::addColumn("imagePath"); + QTest::addColumn("targetFormat"); + QTest::addColumn("customBackgroundColor"); + QTest::addColumn("expectedBackgroundColor"); + + QTest::newRow("load regular image") + << false << false << regularTempFileInfo.absoluteFilePath() + << "png" << QColor() << QColor(Qt::black); + QTest::newRow("load regular image with custom background color") + << false << false << regularTempFileInfo.absoluteFilePath() + << "png" << QColor(Qt::red) << QColor(Qt::black); + QTest::newRow("load transparent PNG image") + << false << false << regularTempFileInfo.absoluteFilePath() + << "png" << QColor() << QColor(Qt::black); + QTest::newRow("load transparent PNG image with custom background color, target PNG format") + << false << false << pngTempFileInfo.absoluteFilePath() + << "png" << QColor(Qt::red) << QColor(Qt::red); + QTest::newRow("load transparent PNG image with custom background color, target BMP format") + << false << false << pngTempFileInfo.absoluteFilePath() + << "bmp" << QColor(Qt::red) << QColor(Qt::red); + QTest::newRow("load transparent PNG image with custom background color, target BMP format, RAW support enabled") + << true << false << pngTempFileInfo.absoluteFilePath() + << "bmp" << QColor(Qt::red) << QColor(Qt::red); +} + +void ConvertThreadTest::test_loadImage() +{ + QFETCH(bool, isRawImage); + QFETCH(bool, isSvgImage); + QFETCH(QString, imagePath); + QFETCH(QString, targetFormat); + QFETCH(QColor, customBackgroundColor); + QFETCH(QColor, expectedBackgroundColor); + + SharedInformation sharedInfo; + sharedInfo.backgroundColor = customBackgroundColor; + sharedInfo.format = targetFormat; + ConvertThread::setSharedInfo(sharedInfo); + + ConvertThread thread(this, 1); + + RawModel rawModel(isRawImage, "", ""); + + QImage *image = thread.loadImage(imagePath, &rawModel, isSvgImage); + + QCOMPARE(image->pixel(1, 1), expectedBackgroundColor.rgba()); + + delete image; +} + +QTEST_MAIN(ConvertThreadTest) +#include "ConvertThreadTest.moc" diff -Nru sir-3.1/tests/ConvertThreadTest.hpp sir-3.2/tests/ConvertThreadTest.hpp --- sir-3.1/tests/ConvertThreadTest.hpp 1970-01-01 00:00:00.000000000 +0000 +++ sir-3.2/tests/ConvertThreadTest.hpp 2018-02-04 19:17:01.000000000 +0000 @@ -0,0 +1,50 @@ +/* This file is part of SIR, an open-source cross-platform Image tool + * 2007-2010 Rafael Sachetto + * 2011-2016 Marek Jędryka + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * Program URL: http://marek629.github.io/SIR/ + */ + +#ifndef CONVERTTHREADTEST_HPP +#define CONVERTTHREADTEST_HPP + +#include + +#include "ConvertThread.hpp" + + +class ConvertThreadTest : public QObject +{ + Q_OBJECT + +public: + ConvertThreadTest(); + +private: + QFileInfoList createdFileInfoList; + +private slots: + void initTestCase(); + void cleanupTestCase(); + + void test_fillImage_data(); + void test_fillImage(); + void test_loadImage_data(); + void test_loadImage(); +}; + +#endif // CONVERTTHREADTEST_HPP diff -Nru sir-3.1/TODO.md sir-3.2/TODO.md --- sir-3.1/TODO.md 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/TODO.md 2018-02-04 19:17:01.000000000 +0000 @@ -5,7 +5,9 @@ * Add saturation support to Raw basic tab * Check add background color effect for transparent PNG images +* Check store last localization of added images to SIR * CMake optiomalization for Travis CI system - not needed build sir binary, sir_library only is sufficient +* More JPEG compression options ## Next Release @@ -48,6 +50,5 @@ * scripts with exiv2 support * graphical flow diagram editor for scripts substitution * Add color filters - colormaps (dog's view, jet); see also: http://www.mathworks.com/help/matlab/ref/colormap.html -* More JPEG compression options * Run SIR as web service * Crop images diff -Nru sir-3.1/web/check_updates.php sir-3.2/web/check_updates.php --- sir-3.1/web/check_updates.php 2016-02-11 21:44:11.000000000 +0000 +++ sir-3.2/web/check_updates.php 2018-02-04 19:17:01.000000000 +0000 @@ -10,7 +10,7 @@ #echo $clientVersion[1]; - $releaseVersion = array(3,1,0); + $releaseVersion = array(3,2,0); # versions comparition $count = count($releaseVersion);