Skip to content

Commit

Permalink
PNG export: add previews for lossy optimization settings
Browse files Browse the repository at this point in the history
Estimated file size reduction is also provided, to give a better idea of
the quality/file size trade-offs inherent in lossy PNG optimization.

(A few other PNG-related bugfixes are also included in this commit,
FYI.)
  • Loading branch information
tannerhelland committed Apr 28, 2016
1 parent 1f4b10a commit 848ad07
Show file tree
Hide file tree
Showing 17 changed files with 437 additions and 213 deletions.
120 changes: 105 additions & 15 deletions App/PhotoDemon/Languages/Deutsch_1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>de-DE</langid>
<langname>Deutsch (Helmut Kuerbiss)</langname>
<langversion>6.7.153</langversion>
<langversion>6.7.156</langversion>
<langstatus>Complete</langstatus>

<author>Helmut Kuerbiss (orig. Frank Donckers)</author>
Expand Down Expand Up @@ -650,11 +650,6 @@ Sie können das Unterprogramm MenuTest () im Modul Filters_Miscellaneous verwend
<translation>GDI+ kann das Blur-Objekt nicht erstellen</translation>
</phrase>

<phrase>
<original>Initializing GDI+</original>
<translation>GDI+ initialisieren</translation>
</phrase>

<phrase>
<original>Creating GDI+ compatible image copy</original>
<translation>GDI+-kompatible Bildkopie erstellen</translation>
Expand All @@ -680,7 +675,7 @@ Sie können das Unterprogramm MenuTest () im Modul Filters_Miscellaneous verwend
<translation>Speichern abgeschlossen.</translation>
</phrase>

<!-- VBP_GDIPlus.bas contains 9 phrases. All 9 were unique, so 9 new phrases were written to file. -->
<!-- VBP_GDIPlus.bas contains 8 phrases. All 8 were unique, so 8 new phrases were written to file. -->

<!-- END text for VBP_GDIPlus.bas-->

Expand Down Expand Up @@ -738,7 +733,7 @@ Um dieses Bildformat zugänglich zu machen, kopieren Sie bitte die Datei "FreeIm
<translation>Speichern unmöglich ohne die FreeImage-Programmbibliothek.</translation>
</phrase>

<!-- ImageExporter.bas contains 18 phrases. 13 were duplicates of existing phrases, so only 5 new phrases were written to file. -->
<!-- ImageExporter.bas contains 20 phrases. 15 were duplicates of existing phrases, so only 5 new phrases were written to file. -->

<!-- END text for ImageExporter.bas-->

Expand Down Expand Up @@ -1507,7 +1502,22 @@ In Version 6.0 wurden das Format der PhotoDemon-Makrodateien überarbeitet, um n

<!-- BEGIN text for VBP_pngnqInterface.bas -->

<!-- VBP_pngnqInterface.bas contains 0 phrases. -->
<phrase>
<original>Using pngquant to optimize the PNG file. This may take a moment</original>
<translation></translation>
</phrase>

<phrase>
<original>pngquant optimization successful!</original>
<translation></translation>
</phrase>

<phrase>
<original>PNGQuant could not write file. Default 32bpp image was saved instead.</original>
<translation></translation>
</phrase>

<!-- VBP_pngnqInterface.bas contains 4 phrases. One was a duplicate of an existing phrase, so only 3 new phrases were written to file. -->

<!-- END text for VBP_pngnqInterface.bas-->

Expand Down Expand Up @@ -15014,7 +15024,17 @@ Wenn Sie trotzdem automatische Updates deaktivieren, sollten Sie gelegentlich ph

<!-- BEGIN text for Plugin_OptiPNG.bas -->

<!-- Plugin_OptiPNG.bas contains 0 phrases. -->
<phrase>
<original>Using OptiPNG to optimize the PNG file. This may take a moment</original>
<translation></translation>
</phrase>

<phrase>
<original>OptiPNG optimization successful!</original>
<translation></translation>
</phrase>

<!-- Plugin_OptiPNG.bas contains 2 phrases. Both phrases were unique, so 2 new phrases were written to file. -->

<!-- END text for Plugin_OptiPNG.bas-->

Expand All @@ -15031,6 +15051,51 @@ Wenn Sie trotzdem automatische Updates deaktivieren, sollten Sie gelegentlich ph
<translation></translation>
</phrase>

<phrase>
<original>click to generate a new preview image</original>
<translation></translation>
</phrase>

<phrase>
<original>lossy optimization options</original>
<translation></translation>
</phrase>

<phrase>
<original>use dithering to improve quality</original>
<translation></translation>
</phrase>

<phrase>
<original>target quality</original>
<translation></translation>
</phrase>

<phrase>
<original>apply lossy optimizations</original>
<translation></translation>
</phrase>

<phrase>
<original>optimization level</original>
<translation></translation>
</phrase>

<phrase>
<original>fast, larger file</original>
<translation></translation>
</phrase>

<phrase>
<original>slow, smaller file</original>
<translation></translation>
</phrase>

<phrase>
<original>lossless optimization options</original>
<translation></translation>
</phrase>

<phrase>
<original>palette size</original>
<translation></translation>
Expand All @@ -15051,6 +15116,11 @@ Wenn Sie trotzdem automatische Updates deaktivieren, sollten Sie gelegentlich ph
<translation></translation>
</phrase>

<phrase>
<original>file size optimization</original>
<translation></translation>
</phrase>

<phrase>
<original>standard PNG</original>
<translation></translation>
Expand All @@ -15061,6 +15131,16 @@ Wenn Sie trotzdem automatische Updates deaktivieren, sollten Sie gelegentlich ph
<translation></translation>
</phrase>

<phrase>
<original>basic (default)</original>
<translation></translation>
</phrase>

<phrase>
<original>moderate</original>
<translation></translation>
</phrase>

<phrase>
<original>indexed</original>
<translation></translation>
Expand All @@ -15081,16 +15161,26 @@ Wenn Sie trotzdem automatische Updates deaktivieren, sollten Sie gelegentlich ph
<translation></translation>
</phrase>

<!-- File_Save_PNG.frm contains 32 phrases. 21 were duplicates of existing phrases, so only 11 new phrases were written to file. -->
<phrase>
<original>please wait while a new preview image is created</original>
<translation></translation>
</phrase>

<phrase>
<original>These lossy optimization settings reduced file size by %1.</original>
<translation></translation>
</phrase>

<!-- File_Save_PNG.frm contains 59 phrases. 34 were duplicates of existing phrases, so only 25 new phrases were written to file. -->

<!-- END text for File_Save_PNG.frm-->

<!-- Automatic text extraction complete. -->

<phrasecount>2585</phrasecount>
<phrasecount>2603</phrasecount>

<!-- As of this build, PhotoDemon contains 4478 phrases. -->
<!-- 1893 are duplicates, so only 2585 unique phrases have been written to file. -->
<!-- These 2585 phrases contain approximately 13379 total words. -->
<!-- As of this build, PhotoDemon contains 4512 phrases. -->
<!-- 1909 are duplicates, so only 2603 unique phrases have been written to file. -->
<!-- These 2603 phrases contain approximately 13475 total words. -->

</pdData>
33 changes: 19 additions & 14 deletions App/PhotoDemon/Languages/Deutsch_2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>de-DE</langid>
<langname>Deutsch (rk)</langname>
<langversion>6.7.156</langversion>
<langversion>6.7.157</langversion>
<langstatus>Nicht abgeschlossen</langstatus>

<author>rk (orig. Frank Donckers, Helmut Kuerbiss)</author>
Expand Down Expand Up @@ -1517,7 +1517,7 @@ In Version 6.0 wurden PhotoDemon-Makrodateien überarbeitet, um neue Funktionen
<translation></translation>
</phrase>

<!-- VBP_pngnqInterface.bas contains 3 phrases. All 3 were unique, so 3 new phrases were written to file. -->
<!-- VBP_pngnqInterface.bas contains 4 phrases. One was a duplicate of an existing phrase, so only 3 new phrases were written to file. -->

<!-- END text for VBP_pngnqInterface.bas-->

Expand Down Expand Up @@ -15054,12 +15054,12 @@ Wenn Sie dennoch das Deaktivieren der Updates wählen, vergessen Sie nicht, phot
</phrase>

<phrase>
<original>lossy optimization options</original>
<original>click to generate a new preview image</original>
<translation></translation>
</phrase>

<phrase>
<original>lossy optimization provided by pngquant</original>
<original>lossy optimization options</original>
<translation></translation>
</phrase>

Expand All @@ -15083,11 +15083,6 @@ Wenn Sie dennoch das Deaktivieren der Updates wählen, vergessen Sie nicht, phot
<translation></translation>
</phrase>

<phrase>
<original>lossless optimization provided by OptiPNG</original>
<translation></translation>
</phrase>

<phrase>
<original>fast, larger file</original>
<translation></translation>
Expand Down Expand Up @@ -15168,16 +15163,26 @@ Wenn Sie dennoch das Deaktivieren der Updates wählen, vergessen Sie nicht, phot
<translation></translation>
</phrase>

<!-- File_Save_PNG.frm contains 52 phrases. 28 were duplicates of existing phrases, so only 24 new phrases were written to file. -->
<phrase>
<original>please wait while a new preview image is created</original>
<translation></translation>
</phrase>

<phrase>
<original>These lossy optimization settings reduced file size by %1.</original>
<translation></translation>
</phrase>

<!-- File_Save_PNG.frm contains 59 phrases. 34 were duplicates of existing phrases, so only 25 new phrases were written to file. -->

<!-- END text for File_Save_PNG.frm-->

<!-- Automatic text extraction complete. -->

<phrasecount>2602</phrasecount>
<phrasecount>2603</phrasecount>

<!-- As of this build, PhotoDemon contains 4504 phrases. -->
<!-- 1902 are duplicates, so only 2602 unique phrases have been written to file. -->
<!-- These 2602 phrases contain approximately 13461 total words. -->
<!-- As of this build, PhotoDemon contains 4512 phrases. -->
<!-- 1909 are duplicates, so only 2603 unique phrases have been written to file. -->
<!-- These 2603 phrases contain approximately 13475 total words. -->

</pdData>
33 changes: 19 additions & 14 deletions App/PhotoDemon/Languages/Espanol.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>es-MX</langid>
<langname>Español</langname>
<langversion>6.7.158</langversion>
<langversion>6.7.159</langversion>
<langstatus>completo</langstatus>

<author>Plinio C Garcia</author>
Expand Down Expand Up @@ -1517,7 +1517,7 @@ In versión 6.0, los archivos de macros PhotoDemon fueron rediseñados para sopo
<translation></translation>
</phrase>

<!-- VBP_pngnqInterface.bas contains 3 phrases. All 3 were unique, so 3 new phrases were written to file. -->
<!-- VBP_pngnqInterface.bas contains 4 phrases. One was a duplicate of an existing phrase, so only 3 new phrases were written to file. -->

<!-- END text for VBP_pngnqInterface.bas-->

Expand Down Expand Up @@ -15054,12 +15054,12 @@ If usted todavía elige desactivar las actualizaciones, no se olvide de visitar
</phrase>

<phrase>
<original>lossy optimization options</original>
<original>click to generate a new preview image</original>
<translation></translation>
</phrase>

<phrase>
<original>lossy optimization provided by pngquant</original>
<original>lossy optimization options</original>
<translation></translation>
</phrase>

Expand All @@ -15083,11 +15083,6 @@ If usted todavía elige desactivar las actualizaciones, no se olvide de visitar
<translation></translation>
</phrase>

<phrase>
<original>lossless optimization provided by OptiPNG</original>
<translation></translation>
</phrase>

<phrase>
<original>fast, larger file</original>
<translation></translation>
Expand Down Expand Up @@ -15168,16 +15163,26 @@ If usted todavía elige desactivar las actualizaciones, no se olvide de visitar
<translation></translation>
</phrase>

<!-- File_Save_PNG.frm contains 52 phrases. 28 were duplicates of existing phrases, so only 24 new phrases were written to file. -->
<phrase>
<original>please wait while a new preview image is created</original>
<translation></translation>
</phrase>

<phrase>
<original>These lossy optimization settings reduced file size by %1.</original>
<translation></translation>
</phrase>

<!-- File_Save_PNG.frm contains 59 phrases. 34 were duplicates of existing phrases, so only 25 new phrases were written to file. -->

<!-- END text for File_Save_PNG.frm-->

<!-- Automatic text extraction complete. -->

<phrasecount>2602</phrasecount>
<phrasecount>2603</phrasecount>

<!-- As of this build, PhotoDemon contains 4504 phrases. -->
<!-- 1902 are duplicates, so only 2602 unique phrases have been written to file. -->
<!-- These 2602 phrases contain approximately 13461 total words. -->
<!-- As of this build, PhotoDemon contains 4512 phrases. -->
<!-- 1909 are duplicates, so only 2603 unique phrases have been written to file. -->
<!-- These 2603 phrases contain approximately 13475 total words. -->

</pdData>
Loading

0 comments on commit 848ad07

Please sign in to comment.