Leanify is a cross-platform console-based file size optimizer - gHacks Tech News

Leanify is a cross-platform console-based file size optimizer

Leanify is a lightweight cross-platform application that you can run to optimize the size of certain file types without affecting quality or contents.

File size is not that much of an issue anymore in times where Terabyte hard drives are the norm and not the exception.

It is advisable at times however. If you are running low on disk space, for instance because of quotas in a company network, want to make available files on the Internet or send them to others, then file size may become an issue.

Especially web hosting needs to be mentioned here. If you reduce the size of an image that is viewed a 1000 times per day on your website by 10 Kiloybte, you save 10,000 Kilobytes per day in bandwidth. In addition, you improve page loading times for users visiting the site.

Leanify is cross-platform, which means that you can download and run it on Windows, Linux or Mac systems.

Windows users can download 32-bit or 64-bit versions, both of which are portable.

The program needs to be run from the command line or a batch file.

leanify

The basic command is leanify options path, e.g. leanify -q c:\images. The program scans the selected path or paths, as you can add multiple paths to the command, for supported file types to process them automatically.

The types that it supports currently are the following ones:

ZIP、GZ、TAR、XML、PNG、JPEG、SVG、EXE、DLL、SWF、LUA、DOCX、XLSX、PPTX、EPUB、FB2、JAR、DWF、XPS、ICO、ODT、GFT、RDB

It will either remove unnecessary data such as metadata, comments or debug information from files or recompress them if the option is available. The quality of images won't be affected at all during the process.

Note: The program replaces source files with optimized versions automatically. It is advised to run the program on a copy of the original files to avoid any issues that may arise from running the program.

One of the interesting features of Leanify is that it supports recursive minifying. This means that it will optimize files inside archives, e.g. png files inside a zip archive. You can specify the maximum depth of the operation with the -d parameter.

All operations are done in memory and file formats are identified by their data and not by file extension.

Results vary depending on the source files and can vary a lot. The removal of metadata for example won't reduce the file size by a lot, while the recompression of archives may.

The program displays a status report in the end that highlights the size reduction for all processed files.

Summary
software image
Author Rating
1star1star1star1stargray
no rating based on 0 votes
Software Name
Leanify
Landing Page
Advertisement

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:


Previous Post: «
Next Post: »

Comments

  1. Pants said on January 1, 2015 at 10:13 pm
    Reply

    “quotes in a company network” .. should be quotas

    1. Martin Brinkmann said on January 2, 2015 at 9:33 am
      Reply

      Right, thanks!

  2. Dwight Stegall said on January 1, 2015 at 11:46 pm
    Reply

    Does it make the files smaller than Bandizip? I switched from 7-Zip to Bandizip. My 14GB of personal files are compressed in half the time as before.

  3. Rick said on January 2, 2015 at 2:40 am
    Reply

    You won’t find any difference in size on the compacting – the savings is in the removing of extra data in the files (metadata etc) from the files. Horrible idea on mp3s for example as all of your tags are removed to save a few bytes.

    As Martin mentions however, if you have a picture on a website that is downloaded hundreds of times, that little bit of savings can add up.

    Frankly, why not just use exiftool using: exiftool(-all=) for images? I guess the ability to look inside archives, but how often do you upload an archive?

  4. PhoneyVIrus said on January 9, 2015 at 12:09 am
    Reply

    Personally I can see this application been use for archiving zip files in your cloud storage, even though it removes everything that ant needed, it can also be the downfall for everything like Rick stated Horrible for MP3’s where it removes all ID3v tags, plus if you don’t have a backup copy after it done deleting your files, you’ll get burned.

    I can only imagine me running this and it removing all my ID3v tags and replacing the old with the new, at this point I think I would literally clear off the top on my desktop with one arm in rage. :)

    Thanks for the Tutorials Martin

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.