Leanify 0.4.3

Leanify 是一个用来减小文件体积的软件。

目前支持的格式有:ZIP、GZ、TAR、XML、PNG、JPEG、SVG、EXE、DLL、SWF、LUA、DOCX、XLSX、PPTX、EPUB、FB2、JAR、DWF、XPS、ICO、ODT、GFT、RDB等。

更多介绍,详见GitHub,欢迎PR。

使用前请务必备份文件!否则后果自负!

leanify

更新日志:

0.4.3 (2015-11-25)

  • Added support for Data URI #14.
  • Added support for DWF format.
  • Updated zopfli to 1.0.1.
  • Updated LZMA to 15.12.
  • Updated mozjpeg to 3.1.
  • Updated TinyXML2 to 3.0.0.
  • Improved PNG optimization for some cases.
  • Improved ZIP optimization for some cases.
  • Improved SVG minifying.
  • Added option --keep-exif.
  • Bug fixes and optimizations.

0.4.2 (2014-11-07)

  • Added support for PE.
  • Added support for tar.
  • Added support for fb2.
  • Added support for removing SVG metadata.
  • New -d option to specify maximum recursive depth.
  • Updated TinyXML2 to 2.2.0
  • Enable SSE2 and Link Time Optimization.
  • Win: Added 64-bit build.
  • Win: More meaningful error message.
  • Linux, Mac: Fixed printing UTF16 string.
  • Other optimizations and bug fixes.

0.4.1 (2014-08-10)

  • Add support for JPEG.
  • Add support for SWF.
  • Add support for XML with UTF8-BOM.
  • Improved command line arguments handling.
  • Fix gzip checksum.

0.4.0 (2014-08-04)

  • First public release.

 

 

GitHub下载

您可能还喜欢...

76 条回复

  1. shuax说道:
    Google Chrome 38.0.2101.0 Google Chrome 38.0.2101.0 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

  2. aunsen说道:
    Firefox 31.0 Firefox 31.0 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

    求更新QQ

  3. Artemis说道:
    Google Chrome 36.0.1985.125 Google Chrome 36.0.1985.125 Windows 7 x64 Edition Windows 7 x64 Edition

    Jayxon已经在国外了吗

  4. 文科说道:
    Firefox 34.0 Firefox 34.0 Windows 7 x64 Edition Windows 7 x64 Edition

    没有GUI么

  5. Talons说道:
    Maxthon 4.4.1.3000 Maxthon 4.4.1.3000 Windows 7 Windows 7

  6. nuomi说道:
    Google Chrome 36.0.1985.125 Google Chrome 36.0.1985.125 Mac OS X  10.9.4 Mac OS X 10.9.4

    已经换用 OS X 了……

  7. 谦谦说道:
    Google Chrome 36.0.1985.125 Google Chrome 36.0.1985.125 Windows 7 x64 Edition Windows 7 x64 Edition

    Leanify.exe -q “xxxx.xml” 这样有些XML并没有被压缩 什么原因 ?

    • JayXon说道:
      Google Chrome 37.0.2062.58 Google Chrome 37.0.2062.58 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

      请把没有被压缩的xml文件发给我一个看看

      • 谦谦说道:
        Google Chrome 36.0.1985.125 Google Chrome 36.0.1985.125 Windows 7 x64 Edition Windows 7 x64 Edition

        就是加-q参数压缩的ANSI编码的XML可以压缩,UTF-8(BOM)的压缩不了,不知道大神用什么参数压缩的?

        • JayXon说道:
          Google Chrome 37.0.2062.58 Google Chrome 37.0.2062.58 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

          其实不需要加-q,那个只是屏蔽掉显示信息,BOM的情况我确实之前没有考虑到,现在GitHub上最近的代码已经支持BOM了,如果有条件自己编译一下试试,或者等我发布下一个版本。

      • 谦谦说道:
        Google Chrome 36.0.1985.125 Google Chrome 36.0.1985.125 Windows 7 x64 Edition Windows 7 x64 Edition

        关键就是怎么去掉UTF8编码的BOM 有BOM无法压缩

  8. Thiece说道:
    Google Chrome 35.0.1916.153 Google Chrome 35.0.1916.153 Windows 7 x64 Edition Windows 7 x64 Edition

    如果我想把做成放在服务器上用的版本该怎么操作呢?

  9. samirguo说道:
    Google Chrome 30.0.1599.69 Google Chrome 30.0.1599.69 Windows 7 Windows 7

    来看看老朋友

  10. toutou说道:
    Internet Explorer 10.0 Internet Explorer 10.0 Windows 7 x64 Edition Windows 7 x64 Edition

    羡慕会编程的人,自己几年前学习了asp,现在还是只会asp,哎

  11. 甜菜说道:
    Sogou Explorer Sogou Explorer Windows 7 Windows 7

    围观JayXon…话说换主题了,这个作者不错的

  12. ken说道:
    Internet Explorer 11.0 Internet Explorer 11.0 Windows 10 x64 Edition Windows 10 x64 Edition

    是个好东西啊 收藏了!

  13. baga说道:
    Google Chrome 37.0.2062.94 Google Chrome 37.0.2062.94 GNU/Linux x64 GNU/Linux x64

    看看系统

  14. Alan说道:
    Internet Explorer 7.0 Internet Explorer 7.0 Windows 7 x64 Edition Windows 7 x64 Edition

    小白求助这个软件怎么使用?双击打开按任何键都闪退了?

    • JayXon说道:
      Google Chrome 38.0.2125.101 Google Chrome 38.0.2125.101 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

      这是一个命令行程序,最简单的用法是将你要处理的文件拖拽到Leanify的图标上

      • Alan说道:
        Maxthon 4.4.2.2000 Maxthon 4.4.2.2000 Windows 7 x64 Edition Windows 7 x64 Edition

        是不是有些格式压缩了没有效果?我试了MP3的,打包成zip格式,用您的这个软件没有压缩效果.大小和原来一样.

        • JayXon说道:
          Google Chrome 38.0.2125.101 Google Chrome 38.0.2125.101 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

          mp3目前是不支持的,但是zip文件是支持的,一般都能压缩一点点,但是已经被Leanify压缩过的,再次用Leanify压缩就没用了

          • Alan说道:
            Maxthon 4.4.2.2000 Maxthon 4.4.2.2000 Windows 7 x64 Edition Windows 7 x64 Edition

            只是一点点啊,我记得以前下载一个office2003是100多M,后来解压出来就变成好几百M了,请问这个能强力压缩吗?其实我一直很想找一个能把大文件压缩体力缩小超过50%的软件.

            • JayXon说道:
              Google Chrome 38.0.2125.111 Google Chrome 38.0.2125.111 Windows 8.1 x64 Edition Windows 8.1 x64 Edition

              这个软件是在不改变文件格式的情况下压缩文件大小,如果你要压缩成压缩率高的其他格式,试试zpaq,freearc,cmix,nanozip等。

            • Keats说道:
              Firefox 49.0 Firefox 49.0 Windows 7 x64 Edition Windows 7 x64 Edition

              那种压缩其实不是压缩,只是一个文件在好几个文件夹里被引用了,然后就只存了一份,但是解压出来的时候要每个文件夹都有,所以体积扩大了很多

  15. w1w2说道:
    Internet Explorer 11.0 Internet Explorer 11.0 Windows 95 Windows 95

    留名

  16. dsffs说道:
    Microsoft Edge 12.0 Microsoft Edge 12.0 Windows 10 x64 Edition Windows 10 x64 Edition

    看看

  17. Yu说道:
    Google Chrome 39.0.2171.90 Google Chrome 39.0.2171.90 Android 5.0 Android 5.0

    好久没见J发文啦

  18. alwaysbeta说道:
    Google Chrome 40.0.2214.93 Google Chrome 40.0.2214.93 Windows 8.1 Windows 8.1

    因为平时需要,别人扫描的图片jpg格式,有的一张10+M,用系统自带的图片查看器打开电脑就卡死了。这个软件会压缩一部分,请问压缩空间还可以提升么?

  19. stacer说道:
    Google Chrome 44.0.2403.130 Google Chrome 44.0.2403.130 Windows 7 x64 Edition Windows 7 x64 Edition

    压缩以后便乱码了……

  20. qqqqqq说道:
    Internet Explorer 11.0 Internet Explorer 11.0 Windows 10 Windows 10

    挺好用,能改用纯C写吗?谢了。

  21. Google Chrome 31.0.1650.63 Google Chrome 31.0.1650.63 Windows 7 x64 Edition Windows 7 x64 Edition

    瞅瞅

  22. why说道:
    Google Chrome 47.0.2526.106 Google Chrome 47.0.2526.106 Windows 7 x64 Edition Windows 7 x64 Edition

    可以考虑改成多线程吗?单线程批量处理效率有点低耶

  23. 见识多说道:
    Google Chrome 46.0.2490.71 Google Chrome 46.0.2490.71 Windows 8.1 Windows 8.1

    来学习了!圣诞快乐!

  24. soyue说道:
    Google Chrome 46.0.2490.86 Google Chrome 46.0.2490.86 Windows 10 x64 Edition Windows 10 x64 Edition

    新年好

  25. ONEO说道:
    Google Chrome 49.0.2623.23 Google Chrome 49.0.2623.23 Windows 10 x64 Edition Windows 10 x64 Edition

    压缩率挺高的,就是路径不支持中文好像,建议加个提示(压缩多个文件的时候,没办法知道还有多少文件没有压缩)

  26. chyh说道:
    Google Chrome 48.0.2564.97 Google Chrome 48.0.2564.97 Mac OS X  10.11.3 Mac OS X 10.11.3

    mac 不会编译呢。。。

  27. nuomi说道:
    Google Chrome 48.0.2564.103 Google Chrome 48.0.2564.103 Mac OS X  10.11.3 Mac OS X 10.11.3

    有个疑问,是不是 `-i` 设置足够大,就能极限压缩(即第二次运行 leanify 提示 `Leanified: 0 B`)。
    还有,假如 `-i 20` 可以做到极限压缩,用 `-i 30` 消耗同样时间还是更多时间?
    望答疑。

    • JayXon说道:
      Google Chrome 48.0.2564.109 Google Chrome 48.0.2564.109 Windows 10 x64 Edition Windows 10 x64 Edition

      并不存在极限压缩一说,默认-i是15,如果第一次运行设置大于等于15,那么第二次就是0B,如果时间充裕可以尝试-i 1000

      • nuomi说道:
        Google Chrome 48.0.2564.109 Google Chrome 48.0.2564.109 Mac OS X  10.11.3 Mac OS X 10.11.3

        昨晚试了下,默认参数。
        #zip 为 OS X 自带压缩创建,内含「__MACOSX\**」非必须文件。
        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png
        180.38 KB -> 103.02 KB Leanified: 77.36 KB (42.89%)
        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png.zip
        170.55 KB -> 90.97 KB Leanified: 79.58 KB (46.66%)

        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png
        103.02 KB -> 102.93 KB Leanified: 93 B (0.09%)
        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png.zip
        90.97 KB -> 90.71 KB Leanified: 260 B (0.28%)

        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png
        102.93 KB -> 102.93 KB Leanified: 0 B (0.00%)
        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png.zip
        90.71 KB -> 90.71 KB Leanified: 0 B (0.00%)

        #2.zip 为经过数次 leanify 的 png 所创建,依然含有非必须文件。
        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png 2.zip
        91.31 KB -> 90.71 KB Leanified: 617 B (0.66%)

        Processing: /Users/nuomi/Desktop/屏幕快照 2016-02-14 00.39.50.png 2.zip
        90.71 KB -> 90.71 KB Leanified: 0 B (0.00%)
        ——————————————
        这算不算极限压缩,虽然经过多次 leanify。

        • JayXon说道:
          Google Chrome 48.0.2564.109 Google Chrome 48.0.2564.109 Windows 10 x64 Edition Windows 10 x64 Edition

          同样参数运行多次是没有意义的,只有第一次和第二次会有用。你看最后2.zip不是和前面运行两次的zip一样大么。。。你试试用这个文件再给个更大的-i,估计还可以再压缩

          • nuomi说道:
            Google Chrome 48.0.2564.109 Google Chrome 48.0.2564.109 Mac OS X  10.11.3 Mac OS X 10.11.3

            作死试了 -i 1000,大概明白了 leanify 没有「极限压缩」的说话,原来以前理解错了。
            ——————————
            97.39 KB -> 49.69 KB Leanified: 47.71 KB (48.98%)
            leanify /Users/nuomi/Desktop/A.png 25.47s user 0.14s system 99% cpu 25.705 total

            49.69 KB -> 49.67 KB Leanified: 17 B (0.03%)
            leanify /Users/nuomi/Desktop/A.png 59.43s user 0.28s system 99% cpu 59.897 total

            49.67 KB -> 49.67 KB Leanified: 0 B (0.00%)
            leanify /Users/nuomi/Desktop/A.png 59.27s user 0.25s system 99% cpu 59.680 total

            97.39 KB -> 49.56 KB Leanified: 47.83 KB (49.11%)
            leanify -i 1000 /Users/nuomi/Desktop/B.png 731.99s user 5.35s system 96% cpu 12:43.71 total
            ——————————
            图片分辨率 1140 × 778,速度感人,单线程几乎 100%。

  28. Maverick说道:
    Mozilla Compatible Mozilla Compatible

    留名

  29. keats说道:
    Safari 9.0.1 Safari 9.0.1 Mac OS X  10.11.1 Mac OS X 10.11.1

    我来看一下自己的浏览器标志

  30. MoCuishle说道:
    Firefox 40.0 Firefox 40.0 Windows 10 x64 Edition Windows 10 x64 Edition

    我是来看浏览器标志的,为什么大家大都用chrome,很少火狐。

  31. Dodying说道:
    Firefox 46.0 Firefox 46.0 Windows 7 Windows 7

    @MoCuishle
    说没有火狐,我表示不服

  32. regula@instant-mail.de说道:
    Firefox 47.0 Firefox 47.0 Windows 7 x64 Edition Windows 7 x64 Edition

    I suggest to also recompress data urls inside svgs as you do for html files.
    I pretended that a svg was a html and it achieved a significant reduction in file size.
    That is something that is missing in SVGO. So there is a demand for it.
    thanx for your work anyway

  33. Sand说道:
    Opera 12.17 Opera 12.17 Windows 7 x64 Edition Windows 7 x64 Edition

    纯粹看看浏览器标志,难道现在真的没有人用这个浏览器?
    顺便支持一下JAYXON,当年做的迅雷绿色版真是经典!希望能够更新~
    再次支持一下!

  34. Google Chrome 53.0.2785.143 Google Chrome 53.0.2785.143 Windows 7 x64 Edition Windows 7 x64 Edition

    过来看看

  35. 淘宝摄影说道:
    Google Chrome 53.0.2785.143 Google Chrome 53.0.2785.143 Mac OS X  10.11.5 Mac OS X 10.11.5

    有没有用现在

  36. 可入眼说道:
    Google Chrome 53.0.2785.116 Google Chrome 53.0.2785.116 Windows 10 x64 Edition Windows 10 x64 Edition

    压缩效果如何??

  37. d9o说道:
    Maxthon 5.0.2.900 Maxthon 5.0.2.900 Windows 10 x64 Edition Windows 10 x64 Edition

    我在pe下压缩了windows的文件,这个windows还能启动起来吗?

  38. 地下婴儿说道:
    UC Browser 8.7 UC Browser 8.7 Windows 7 Windows 7

    大神为什么不精简迅雷了,还是你的迅雷好用啊!

  39. 企业咨询说道:
    Firefox 50.0 Firefox 50.0 Windows 7 x64 Edition Windows 7 x64 Edition

    厉害厉害

  40. 绿软说道:
    Google Chrome 57.0.2987.110 Google Chrome 57.0.2987.110 Windows 7 Windows 7

    看看浏览器和系统版本

  41. 王春来说道:
    Google Chrome 76.0.3809.132 Google Chrome 76.0.3809.132 Windows 7 x64 Edition Windows 7 x64 Edition

    评论系统是用的什么,大佬。

  1. 2014 年 8 月 5 日
    WordPress 3.7.3 WordPress 3.7.3

    […] 使用Leanify大幅减小Xar文件体积,优化启动速度 […]

发表评论

您的电子邮箱地址不会被公开。