Asset Compression¶
Images¶
There are 2 methods I’m using for compressing my images:
XnConvert¶
XnConvert lets you allow batch image compression. Once you install XnConvert, the steps are really simple.
1) Add Files
Open xnConvert > Add Files or you can also drag and drop files
2) Adjust Compression Settings
Adjust the settings of your compression in ‘Actions’ tab. I usually set the width & height by percentage. I usually go with range from 40-60%.
3) Adjust Output Settings
Go to Output > Choose folder where you want to save > For batch converison you can rename the file by ending ’##’ in the file name, that way it will automatically index numbering the file for you.
4) Convert
Next, go to ‘Status’ and start the process. Now wait for the result!
Using MacOS Image Preview application¶
My mac came with a pre-installed image preview software that can also do image compression. This is actually more ideal for individual compression. However, you can also do batch compression here, and the steps are really easy as well:
-
Select images > ‘More’
-
‘Convert Image’
-
Choose compression type (Format and Size)
The main downfall from this is that you can’t really customize the resolution/size. But since the steps aren’t that long, I found it soo handy to use during crunchtime.
Videos¶
Handbrake¶
Handbrake is an open-source video transcoder. To compress your video, just follow this steps:
-
Once you got your Handbrake installed, open it, and you will be directed to this window. Click ‘Open Source’.
-
Select the video that you want to compress > ‘Open‘
-
Once your video’s loaded (like below), click on the ‘Video’ tab setting
-
On the Quality option, bring down the RF (rate factor) value to 35 by sliding the ruler. The value that I found is good enough to maintain the quality while bringing down the size significantly is 35., but feel free to explore and adjust how you’d you see fit.
-
Next, you can go ahead start the compression. Don’t forget to rename or choose the save location in the bottom part of the window.
-
The software then will start compressing your video. You can monitor it’s progress in the bottom part of the window. When it’s done, it will save the compressed result directly to your chosen folder.
That’s it! Easy-peasy lemon-squeezy!