Skip to content

Commit

Permalink
Disabled Leanify from the JPEG toolchain when copy metadata is enable…
Browse files Browse the repository at this point in the history
…d, because it removed IPTC information (ZonaCasio).

git-svn-id: svn://svn.code.sf.net/p/nikkhokkho/code/trunk@608 ddd8a7e7-04a1-4c0d-ae79-48073a28b335
  • Loading branch information
nikkho committed Oct 30, 2016
1 parent 249b656 commit f4d24b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions FileOptimizer/Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ X.XX - YYYY/MM/DD
- Fixed remove selected files (Shift-Del) always enabled since 9.00 when unified ribbon and regular UI (TPS).
- Add original and optimized sizes in log file (JoeW).
- Fixed a bug in mutool that prevented execution on PDF (LeTiger).
- Disabled Leanify from the JPEG toolchain when copy metadata is enabled, because it removed IPTC information (ZonaCasio).
- Updated to ECT 0.6.2.0 -511fa96- x86 and x64 optimized builds (thanks Malloc Voidstar).
- Updated jsmin custom build with Visual C++ 2015.
- Updated Leanify to 0.4.3.159 daily binaries.
Expand Down
6 changes: 5 additions & 1 deletion FileOptimizer/Source/cppMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,11 @@ void __fastcall TfrmMain::actOptimizeFor(TObject *Sender, int iCount)
iLevel = ((gudtOptions.iLevel * gudtOptions.iLevel * gudtOptions.iLevel) / 25) + 1; //1, 1, 2, 3, 6, 9, 14, 21, 30
}
sFlags += "-i " + (String) iLevel + " ";
RunPlugin((unsigned int) iCount, "Leanify", (sPluginsDirectory + "leanify.exe -q " + sFlags + "\"%TMPINPUTFILE%\"").c_str(), sPluginsDirectory, sInputFile, "", 0, 0);
//Temporary disable Leanify because it removed IPTC metadata
if (!gudtOptions.bJPEGCopyMetadata)
{
RunPlugin((unsigned int) iCount, "Leanify", (sPluginsDirectory + "leanify.exe -q " + sFlags + "\"%TMPINPUTFILE%\"").c_str(), sPluginsDirectory, sInputFile, "", 0, 0);
}

//Seems to cause some loss of quality
//iError = RunPlugin((unsigned int) iCount, "ImageMagick", (sPluginsDirectory + "magick.exe convert -quiet -interlace Plane -define jpeg:optimize-coding=true " +sFlags +"\"" + sShortFile + "\" \"" + acTmpFile + "\"").c_str(), sPluginsDirectory, acTmpFile);
Expand Down

1 comment on commit f4d24b8

@TPS
Copy link

@TPS TPS commented on f4d24b8 Nov 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix requested in JayXon/Leanify#26

Please sign in to comment.