Skip to content

Commit

Permalink
preserve metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjing1294 committed Dec 22, 2022
1 parent 5e9b841 commit a17e96a
Show file tree
Hide file tree
Showing 12 changed files with 317 additions and 26 deletions.
9 changes: 9 additions & 0 deletions TinyGUI/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@
<setting name="LanguageIndex" serializeAs="String">
<value>-1</value>
</setting>
<setting name="MetaCopyright" serializeAs="String">
<value>False</value>
</setting>
<setting name="MetaLocation" serializeAs="String">
<value>False</value>
</setting>
<setting name="MetaCreationTime" serializeAs="String">
<value>False</value>
</setting>
</TinyGUI.Properties.Settings>
</userSettings>
</configuration>
24 changes: 0 additions & 24 deletions TinyGUI/Converters/ScaleBorderThicknessConverter.cs

This file was deleted.

72 changes: 72 additions & 0 deletions TinyGUI/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions TinyGUI/Properties/Resources.de-de.resx
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,28 @@
<data name="Redisant" xml:space="preserve">
<value>https://www.redisant.com</value>
</data>
<data name="PreserveMetadata" xml:space="preserve">
<value>Metadaten beibehalten:</value>
</data>
<data name="PreserveMetadataTip" xml:space="preserve">
<value>Sie können Metadaten angeben, die aus dem hochgeladenen Bild in die komprimierte Version kopiert werden. Unterstützt derzeit die Beibehaltung von Urheberrechtsinformationen, GPS-Standort und Erstellungsdatum. Das Beibehalten von Metadaten erhöht die Größe komprimierter Dateien, daher sollten Sie nur wichtige Metadaten aufbewahren.</value>
</data>
<data name="Copyright" xml:space="preserve">
<value>Urheberrechte ©</value>
</data>
<data name="CopyrightTip" xml:space="preserve">
<value>Alle Copyright-Informationen vorbehalten. Schließen Sie die EXIF-Copyright-Notation (JPEG), die XMP-Berechtigungsnotation (PNG) und die Photoshop-Copyright-Notation oder URL ein. Verwenden Sie bis zu 90 Byte plus die Länge der Copyright-Daten.</value>
</data>
<data name="Location" xml:space="preserve">
<value>Standort</value>
</data>
<data name="LocationTip" xml:space="preserve">
<value>Alle Erstellungsdaten oder -zeiten werden beibehalten. Dies ist der Moment, in dem ein Bild oder Foto erstmals erstellt wird. Enthält EXIF-Raw-Datetime-Stempel (JPEG) oder XMP-Erstellungszeit (PNG). Verwendet etwa 70 zusätzliche Bytes.</value>
</data>
<data name="CreationTime" xml:space="preserve">
<value>Erstellungsdatum</value>
</data>
<data name="CreationTimeTip" xml:space="preserve">
<value>Alle GPS-Standortinformationen, die beschreiben, wo das Bild oder Foto erstellt wurde, werden beibehalten. Enthält EXIF-GPS-Abmessungen und GPS-Genauigkeits-Tags (JPEG). Verwendet etwa 130 zusätzliche Bytes.</value>
</data>
</root>
24 changes: 24 additions & 0 deletions TinyGUI/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,28 @@
<data name="Redisant" xml:space="preserve">
<value>https://www.redisant.com</value>
</data>
<data name="PreserveMetadata" xml:space="preserve">
<value>Preserve metadata:</value>
</data>
<data name="PreserveMetadataTip" xml:space="preserve">
<value>You can specify metadata that is copied from the uploaded image to the compressed version. Currently supports preserving copyright information, GPS location and creation date. Preserving metadata increases the size of compressed files, so you should only keep important metadata.</value>
</data>
<data name="Copyright" xml:space="preserve">
<value>Copyright</value>
</data>
<data name="CopyrightTip" xml:space="preserve">
<value>All copyright information reserved. Include EXIF copyright notation (JPEG), XMP permission notation (PNG), and Photoshop copyright notation or URL. Use up to 90 bytes, plus the length of the copyright data.</value>
</data>
<data name="Location" xml:space="preserve">
<value>Location</value>
</data>
<data name="LocationTip" xml:space="preserve">
<value>Any creation date or time is preserved. This is the moment when an image or photo is initially created. Includes EXIF raw datetime stamp (JPEG) or XMP creation time (PNG). Uses about 70 extra bytes.</value>
</data>
<data name="CreationTime" xml:space="preserve">
<value>Creation date</value>
</data>
<data name="CreationTimeTip" xml:space="preserve">
<value>Any GPS location information that describes where the picture or photo was created is preserved. Contains EXIF GPS Dimensions and GPS Accuracy tags (JPEG). Uses about 130 extra bytes.</value>
</data>
</root>
51 changes: 51 additions & 0 deletions TinyGUI/Properties/Resources.zh-hant.resx
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,55 @@
<data name="SupportMe" xml:space="preserve">
<value>給個星星,支援一下</value>
</data>
<data name="PreserveMetadata" xml:space="preserve">
<value>保留元數據:</value>
</data>
<data name="PreserveMetadataTip" xml:space="preserve">
<value>您可以指定從上傳圖片拷貝到壓縮版本的元數據。當前支持保留版權信息,GPS位置和創建日期。保留元數據會增加壓縮文件的大小,因此您應該只保留重要的元數據。</value>
</data>
<data name="Copyright" xml:space="preserve">
<value>版權信息</value>
</data>
<data name="Compression" xml:space="preserve">
<value>壓縮圖片</value>
</data>
<data name="CoverTip" xml:space="preserve">
<value>按比例縮小圖片,如有必要裁切圖片。結果具有準確的給定尺寸。圖片中哪個部分將被裁切是自動決定的。智能算法確定圖像中最重要的區域。</value>
</data>
<data name="FitTip" xml:space="preserve">
<value>按比例縮小圖片,使其適合(fit)給定的尺寸。你必須同時提供width和height。縮小後的圖像不會超過這些尺寸中的任何一個。</value>
</data>
<data name="Redisant" xml:space="preserve">
<value>http://www.redisant.cn</value>
</data>
<data name="ScaleTip" xml:space="preserve">
<value>按比例縮小圖片。您必須提供目標width或height,不能同時提供兩者。縮小後的圖片會有確定的寬度或者高度。</value>
</data>
<data name="SmartCut" xml:space="preserve">
<value>智能剪切</value>
</data>
<data name="ThumbTip" xml:space="preserve">
<value>檢測具有簡單背景的圖片。圖片會被縮小到您提供的width和height的大小。如果一個圖片被檢測到獨立物體,算法將在必要位置添加更多的背景,或者裁切掉不重要的部分。</value>
</data>
<data name="Upload" xml:space="preserve">
<value>直接上傳</value>
</data>
<data name="UploadTip" xml:space="preserve">
<value>您可以上傳任何JPEG或PNG圖片到Tinify API來進行壓縮。我們將自動檢測圖片類型並相應的使用TinyPNG或TinyJPG引擎進行優化。</value>
</data>
<data name="CopyrightTip" xml:space="preserve">
<value>保留所有版權信息。包括EXIF版權標記(JPEG),XMP權限標記(PNG)以及Photoshop版權標記或URL。使用最多90個字節,再加上版權數據的長度。</value>
</data>
<data name="Location" xml:space="preserve">
<value>位置信息</value>
</data>
<data name="LocationTip" xml:space="preserve">
<value>保留任何創建日期或時間。這是最初創建圖像或照片的時刻。包括EXIF原始日期時間標記(JPEG)或XMP創建時間(PNG)。使用大約70個額外字節。</value>
</data>
<data name="CreationTime" xml:space="preserve">
<value>創建日期</value>
</data>
<data name="CreationTimeTip" xml:space="preserve">
<value>保留任何GPS位置信息,該信息描述圖片或者照片創建的位置。包含EXIF GPS維度和GPS精度標籤(JPEG)。使用大約130個額外字節。</value>
</data>
</root>
24 changes: 24 additions & 0 deletions TinyGUI/Properties/Resources.zh.resx
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,28 @@
<data name="Redisant" xml:space="preserve">
<value>http://www.redisant.cn</value>
</data>
<data name="PreserveMetadata" xml:space="preserve">
<value>保留元数据:</value>
</data>
<data name="PreserveMetadataTip" xml:space="preserve">
<value>您可以指定从上传图片拷贝到压缩版本的元数据。当前支持保留版权信息,GPS位置和创建日期。 保留元数据会增加压缩文件的大小,因此您应该只保留重要的元数据。</value>
</data>
<data name="Copyright" xml:space="preserve">
<value>版权信息</value>
</data>
<data name="CopyrightTip" xml:space="preserve">
<value>保留所有版权信息。包括EXIF版权标记(JPEG),XMP权限标记(PNG)以及Photoshop版权标记或URL。 使用最多90个字节,再加上版权数据的长度。</value>
</data>
<data name="Location" xml:space="preserve">
<value>位置信息</value>
</data>
<data name="LocationTip" xml:space="preserve">
<value>保留任何创建日期或时间。这是最初创建图像或照片的时刻。包括EXIF原始日期时间标记(JPEG)或XMP创建时间(PNG)。使用大约70个额外字节。</value>
</data>
<data name="CreationTime" xml:space="preserve">
<value>创建日期</value>
</data>
<data name="CreationTimeTip" xml:space="preserve">
<value>保留任何GPS位置信息,该信息描述图片或者照片创建的位置。包含EXIF GPS维度和GPS精度标签(JPEG)。使用大约130个额外字节。</value>
</data>
</root>
36 changes: 36 additions & 0 deletions TinyGUI/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions TinyGUI/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@
<Setting Name="LanguageIndex" Type="System.Int32" Scope="User">
<Value Profile="(Default)">-1</Value>
</Setting>
<Setting Name="MetaCopyright" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="MetaLocation" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="MetaCreationTime" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>

1 change: 0 additions & 1 deletion TinyGUI/TinyGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
</Compile>
<Compile Include="Commands\Command.cs" />
<Compile Include="Converters\IsVisibleConverter.cs" />
<Compile Include="Converters\ScaleBorderThicknessConverter.cs" />
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
Expand Down
Loading

0 comments on commit a17e96a

Please sign in to comment.