The technology behind Neuxpower's File Compressors (NXPowerLite and WeCompress) is best described as "File Optimization". It reduces the file size of image-heavy files by eliminating excess baggage and converting embedded images to the most appropriate file format and resolution.
Optimized files remain in their original format, and will be visually and functionally the same as the original. They don't need to be decompressed or rehydrated, and there's no need for special viewing software - so they can be opened and edited by anybody. File optimization is predominantly "lossy" by design, and below is a list of examples of how it reduces the size of each file type:
PDF (including all sub-sets)
PDF files are most often scanned physical documents or documents that have been created entirely digitally often referred to as 'native' or 'born digital' PDFs.
Scanned PDF
Scanners often capture document pages as high resolution images without compression. So even documents that appear to be just text can often be entirely images. By reducing the resolution of these images and choosing an efficient image encoding these files can be dramatically reduced.
Native PDF
PDF files generated from an electronic source - such as a Word document, a computer generated report, or spreadsheet data - will usually be formed of a combination of text and images. For this type of file the compressor ignores the text and focuses on resizing and choosing the best format for the embedded images.
Techniques used to optimize PDF file size include:
- Convert inserted images to the most efficient file format
- Adjust the JPEG quality of images
- Resize inserted images to the most appropriate size
- Subset or remove embedded fonts
- Remove private application data
PowerPoint
PowerPoint presentations often contain lots of content that can be compressed; from oversized images to hidden data in embedded charts. The compressor will selectively optimize each of these elements within the files to create leaner, smaller presentations.
Techniques used to optimize PowerPoint file size include:
- Convert inserted images to the most efficient file format
- Adjust the JPEG quality of images
- Resize inserted images to the most appropriate size
- Remove cropped areas of inserted images
- Flatten embedded objects and charts
- Remove unnecessary metadata
- Remove “fast save” information
To optimize PowerPoint files with more precision you can use a specialised tool like Slidewise, which is designed to make it easy to find size issues in your presentations. You can use it to reduce file size with precision, so that only the content that you want to reduce is changed.
Word
Microsoft Word files contain lots of content that can be optimized; from oversized images and old fast save information to hidden data in embedded objects. The compressor optimizes each of these elements within the files to create leaner, smaller documents.
Techniques used to optimize Word file size include:
- Convert inserted images to the most efficient file format
- Adjust the JPEG quality of images
- Resize inserted images to the most appropriate size
- Remove cropped areas of inserted images
- Convert metafiles
- Flatten embedded objects and charts
- Remove Word 2007 and earlier compatibility
- Remove unnecessary metadata
- Remove “fast save” information
Excel
Microsoft Excel files can contain a broad range of content that can secretly drive up the file size; from Images to PivotTable Cache and even invisible Excess Cell Formatting. The compressor optimizes each of these elements within the spreadsheets to create leaner, smaller Workbooks.
Techniques used to optimize Excel file size include:
- Convert inserted images to the most efficient file format
- Adjust the JPEG quality of images
- Resize inserted images to the most appropriate size
- Flatten embedded objects and charts
- Reduce the color depth of PNG images
Particular to Excel files is the "Clean Excess Cell Formatting" feature. Formatting cells on your worksheet can make the right information easy to see at a glance, but formatting cells that aren't being used (especially entire rows and columns) can cause your workbook's file size to grow quickly. This can slow down not just Excel, but the overall performance of your computer when you have an excessively formatted worksheet open. Excessive formatting can also cause printing problems in Excel. The NXPowerLite Excel Compressor can clear excess cell formatting for you automatically.
If NXPowerLite is unable to reduce your Excel file, then it is probably because it contains some content that NXPowerLite is unable to compress yet. In this case it will link you to our guide how to manually compress your Excel file.
JPEG
Most JPEG images are produced by digital cameras, which are optimized to preserve as much information as possible in order to allow the image to be edited and post-processed. Most of this information is not visually detectable and unnecessarily increases the size of the file.
Where appropriate, NXPowerLite applies additional JPEG compression to images. The default setting (8) will result in an undetectable loss of quality, even at 100% zoom or when printed.
NXPowerLite uses a number of additional techniques to reduce the amount of data in JPEG files, resulting in impressive size reduction without any discernible loss of quality. These techniques include optimized Huffman coding and Chroma subsampling.
Note: By default JPEG images are not resized as part of the optimization process and EXIF metadata is preserved.
PNG
To reduce the size of PNG files the compressor reduces the number of colours in a PNG image, which allows it to convert the 24-bit PNG to a much smaller, more efficient 8-bit indexed color image. The file size reduction can often be as much as 60-80% smaller than equivalent 24/32-bit PNG files, and it preserves full alpha transparency. Generated images are compatible with all web browsers and operating systems.
It uses a technique called “Color quantization”, which basically means reducing the number of colours used in an image. Specifically we use the pngquant quantisation library which creates efficient 8-bit PNG files with an alpha channel. Details of how this algorithm works can be found towards the bottom of the webpage for the library at pngquant.org
TIFF
Many TIFF files are stored uncompressed despite having a number of lossless compression methods available. This results in much larger file sizes, with the only benefit being slightly faster opening times. The compressor can shrink uncompressed TIFF images by applying lossless LZW compression. As this built-in compression method for TIFF files is lossless it's a great opportunity to reclaim storage. For multi-page TIFF files it will apply lossless LZW compression to uncompressed pages.
It has been noted that an LZW compressed 16-bit TIFF file can be larger than the uncompressed file.
This is absolutely correct for the majority of 16-bit TIFFs, but not for 8-bit files or lower as in our example above. To avoid this being an issue NXPowerLite will never overwrite a file with a larger one, so most 16-bit TIFFs will remain untouched if adding LZW compression would have increased their size.
Before adding this capability into our file compressor software we created a scanning tool which we shared with a number of our customers. This brought back data on a few million TIFF files, within which we found only a handful of 16-bit files, they were predominantly 8-bit ones (or 1-bit black and white scans), so this gave us confidence that the feature would be very effective.
As an example of how TIFF compression works, you can see the uncompressed TIFF image below being reduced from over 29 MB down to just under 13 MB by applying LZW compression.
Please note: Any of the above files found in a Zip file can be extracted and replaced with smaller versions as described above. Once processed all the files will be re-compressed leaving a file that looks like the original Zip just smaller.
Tools mentioned in this article
NXPowerLite Desktop: Our desktop file compressor
WeCompress: Our online file compressor for files up to 50 MB
Slidewise: PowerPoint add-in to make precision file size edits easier
Frequently Asked Questions
How much smaller your files get will depend on how many graphics and embedded documents they contain, and how large they are initially. Users have experienced compression rates as high as 99% with no discernible loss of quality to their files. However, if your files contain no graphics or embedded documents, they are unlikely to get much smaller.
For example, NXPowerLite is likely to get much better reduction results with large image-heavy PowerPoint files rather than small data-heavy Excel files.
File optimization can often reduce file sizes of media-rich files far more effectively than traditional compression methods, such as zip compression. Optimizing an image-heavy PowerPoint presentation will often reduce its file size by 90% or more (zipping the same presentation will result in a compression rate of just 10-15%). Because optimized files remain in their original format, there's also no need to unzip optimized files before using them.
By default NXPowerLite will not reduce a file unless it has changed by +/- 64KB or the optimization settings used are more aggressive than the original settings used. 'More aggressive' could mean lower image quality, smaller resolution or optimization of hidden data elements.
The reason behind this feature is that NXPowerLite needs to ensure that files are not over-optimized. This can create pixelated images and unusable content. So NXPowerLite leaves a small amount of metadata in each file that is successfully processed. It can then decide what to do and apply the rules outlined earlier.
If there are any issues please contact support@neuxpower.com or check out this article