Added the possibility to call optipng, or eventually other optimizers, on the PNG file. This can be used with any PNG file, it's not important if there is an upload or saving to file, as the optimizer runs on a temporary file which is read back and than deleted. Was requested with feature request [#267]. This change only enables the functionality, there is not yet a GUI entry for it.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2535 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-03-25 13:42:21 +00:00
commit 7823138adc
2 changed files with 81 additions and 8 deletions

View file

@ -237,6 +237,11 @@ namespace GreenshotPlugin.Core {
[IniProperty("MailApiBCC", Description = "The 'BCC' field for the email destination (settings for Outlook can be found under the Office section)", DefaultValue = "")]
public string MailApiBCC;
[IniProperty("OptimizePNGCommand", Description = "Optional command to execute on a temporary PNG file, the command should overwrite the file and Greenshot will read it back. Note: this command is also executed when uploading PNG's!", DefaultValue = "")]
public string OptimizePNGCommand;
[IniProperty("OptimizePNGCommandArguments", Description = "Arguments for the optional command to execute on a PNG, {0} is replaced by the temp-filename from Greenshot. Note: Temp-file is deleted afterwards by Greenshot.", DefaultValue = "\"{0}\"")]
public string OptimizePNGCommandArguments;
// Specifies what THIS build is
public BuildStates BuildState = BuildStates.UNSTABLE;