This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.ts files cleaned. Added German translation. New logo. Some changes for easier translation. File search in the wizard moved to different thread to prevent GUI freeze (still testing). Added progress indicator into input path QLineEdit. Small fixes.
- Loading branch information
1 parent
91a759a
commit cad56c1
Showing
25 changed files
with
1,733 additions
and
1,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
Generally, SVG files produced by vector editors contain a lot of unused elements and attributes that just blow up their size, but not add quality. SVG Cleaner could help you to clean up your SVG files from unnecessary data. It works in batch mode and basically does two things: | ||
- removing elements and attributes that don't contribute to the final rendering; | ||
- making those elements and attributes that are actually used more compact. | ||
The app has a lot of options for cleanup and optimization and provides multithreaded file processing on the multicore processors. | ||
Generally, SVG files produced by vector editors contain a lot of unused elements and attributes that just blow up their size without providing better visible quality. | ||
|
||
Usually, images cleaned by SVG Cleaner may be as small as 10-60% of the original sizes. | ||
SVG Cleaner could help you to clean up your SVG files from unnecessary data. It has a lot of options for cleanup and optimization, works in batch mode, provides threaded processing on the multicore processors and basically does two things: | ||
- removing elements and attributes that don't contribute to the final rendering; | ||
- making those elements and attributes in use more compact. | ||
|
||
Important! Internal image viewer in SVG Cleaner uses QtSvg for rendering SVG images. Since Qt supports only the static features of SVG 1.2 Tiny that imposes a number of restrictions on rendering of advanced features. For instance, elements such as clipPath, mask, filters etc. will not be rendered at all. | ||
Images cleaned by SVG Cleaner are typically 10-60 percent smaller than the original ones. | ||
|
||
We apologize in advance for any bugs. Please send bug reports to [email protected] | ||
Important! The internal image viewer in SVG Cleaner uses the QtSvg module for rendering SVG images. Qt supports only the static features of SVG 1.2 Tiny, and that imposes a number of restrictions on rendering of advanced features. For instance, elements such as clipPath, mask, filters etc. will not be rendered at all. | ||
|
||
We apologize for any bugs in advance. Please send bug reports to [email protected]. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
</font> | ||
</property> | ||
<property name="text"> | ||
<string notr="true">SVG Cleaner 0.4</string> | ||
<string notr="true">SVG Cleaner 0.5</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
|
@@ -52,9 +52,17 @@ | |
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> | ||
p, li { white-space: pre-wrap; } | ||
</style></head><body style=" font-family:'Verdana'; font-size:10pt; font-weight:400; font-style:normal;"> | ||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Generally, SVG files produced by vector editors contain a lot of unused elements and attributes that just blow up their size, but not add quality.<br /><br />SVG Cleaner could help you to clean up your SVG files from unnecessary data. It works in batch mode and basically does two things:<br />- removing elements and attributes that don't contribute to the final rendering; <br />- making those elements and attributes that are actually used more compact.<br />The app has a lot of options for cleanup and optimization and provides multithreaded file processing on the multicore processors.<br />Usually, images cleaned by SVG Cleaner may be as small as 10-60% of the original sizes.</span></p> | ||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">Important! Internal image viewer in SVG Cleaner uses QtSvg for rendering SVG images. Since Qt supports only the static features of SVG 1.2 Tiny that imposes a number of restrictions on rendering of advanced features. For instance, elements such as clipPath, mask, filters etc. will not be rendered at all.</span></p> | ||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;">We apologize in advance for any bugs. Please send bug reports to </span><a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a></p></body></html></string> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Generally, SVG files produced by vector editors contain a lot of unused elements and attributes that just blow up their size without providing better visible quality.</p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">SVG Cleaner could help you to clean up your SVG files from unnecessary data. It has a lot of options for cleanup and optimization, works in batch mode, provides threaded processing on the multicore processors and basically does two things:</p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- removing elements and attributes that don't contribute to the final rendering;</p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- making those elements and attributes in use more compact.</p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Images cleaned by SVG Cleaner are typically 10-60 percent smaller than the original ones.</p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Important! The internal image viewer in SVG Cleaner uses the QtSvg module for rendering SVG images. Qt supports only the static features of SVG 1.2 Tiny, and that imposes a number of restrictions on rendering of advanced features. For instance, elements such as clipPath, mask, filters etc. will not be rendered at all.</p> | ||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">We apologize for any bugs in advance. Please send bug reports to <a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a>.</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
|
@@ -76,7 +84,7 @@ p, li { white-space: pre-wrap; } | |
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Andrey Bayrak &lt;<a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a>&gt;</p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Evgeniy Raizner &lt;<a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a>&gt;<br /><br />Special thanks:</p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Alexandre Prokoudine &lt;<a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a>&gt;<br /><br />Translators:</p> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Czech - Pavel Fric &lt;<a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a>&gt;</p></body></html></string> | ||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Czech - Pavel Fric &lt;<a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a>&gt;<br />German - Seb Adler &lt;<a href="[email protected]"><span style=" text-decoration: underline; color:#0057ae;">[email protected]</span></a>&gt;</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
|
@@ -145,6 +153,14 @@ p, li { white-space: pre-wrap; } | |
</item> | ||
</layout> | ||
</widget> | ||
<tabstops> | ||
<tabstop>buttonBox</tabstop> | ||
<tabstop>tabWidget</tabstop> | ||
<tabstop>textBrowser</tabstop> | ||
<tabstop>textBrowser_2</tabstop> | ||
<tabstop>textBrowser_3</tabstop> | ||
<tabstop>textBrowser_4</tabstop> | ||
</tabstops> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include <QDir> | ||
#include <QTime> | ||
#include <QtDebug> | ||
|
||
#include "filefinder.h" | ||
|
||
FileFinder::FileFinder(QObject *parent) : | ||
QObject(parent) | ||
{ | ||
} | ||
|
||
void FileFinder::startSearch(const QString &startDir, bool recursive) | ||
{ | ||
QTime time = QTime::currentTime(); | ||
time.start(); | ||
QFileInfoList list = searchForFiles(startDir, recursive); | ||
emit finished(list); | ||
} | ||
|
||
QFileInfoList FileFinder::searchForFiles(const QString &startDir, bool recursive) | ||
{ | ||
QDir dir(startDir); | ||
QFileInfoList list; | ||
foreach (QString file, dir.entryList(QStringList()<<"*.svg"<<"*.svgz", QDir::Files)) | ||
list += QFileInfo(startDir+"/"+file); | ||
if (recursive && !stop) { | ||
foreach (QString subdir, dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot)) | ||
list += searchForFiles(startDir+"/"+subdir, recursive); | ||
} | ||
return list; | ||
} | ||
|
||
void FileFinder::stopSearch() | ||
{ | ||
stop = true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef FILEFINDER_H | ||
#define FILEFINDER_H | ||
|
||
#include <QObject> | ||
#include <QFileInfoList> | ||
|
||
class FileFinder : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit FileFinder(QObject *parent = 0); | ||
|
||
public slots: | ||
void startSearch(const QString &startDir, bool recursive); | ||
void stopSearch(); | ||
|
||
private: | ||
bool stop; | ||
QFileInfoList searchForFiles(const QString &startDir, bool recursive); | ||
|
||
signals: | ||
void finished(QFileInfoList); | ||
}; | ||
|
||
#endif // FILEFINDER_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.