Best/Highest compression format for Debian

Desktop Environments and Multimedia
Post Reply
Message
Author
4joeyirosh1
Posts: 153
Joined: 2016-09-11 18:04
Been thanked: 3 times

Best/Highest compression format for Debian

#1 Post by 4joeyirosh1 »

Hi!I have Debian Bullseye 64 bit on my machine.I have numerous folders with many life photos and I want to store them on cloud like Google Drive for redundancy.

I have been trying to achieve as maximum compression as possible to reduce space utilization on Google Drive but so far the compression gains have been negligible.For instance I have a folder with 181.7 MB of family photos and if I use the best compression method I know so far ie 7z it compresses to a 7z file that's 181.6 MB with is hardy any compression.Is there a better compression scheme that's lossless or negligible lossy scheme that can achieve a compressed folder of much lower size?

Thanks.

User avatar
sunrat
Global Moderator
Global Moderator
Posts: 4729
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 44 times
Been thanked: 138 times

Re: Best/Highest compression format for Debian

#2 Post by sunrat »

If the photos are jpeg they will already be highly compressed. You could try using jpegoptim for a little more size reduction but it won't be much.
See https://net2.com/how-to-compress-jpeg-o ... -terminal/
Both jpegoptim and optipng are available in the repo.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
stevepusser
Posts: 12593
Joined: 2009-10-06 05:53
Has thanked: 21 times
Been thanked: 28 times

Re: Best/Highest compression format for Debian

#3 Post by stevepusser »

HEIF may be able to compress the images down somewhat without losing quality....https://flat-icons.com/heif-vs-jpeg/
MX Linux packager and developer

Segfault
Posts: 991
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 12 times

Re: Best/Highest compression format for Debian

#4 Post by Segfault »

HEIF may be able to lossless compression, but will these images be smaller then? In lossy mode the images may be smaller, but converting from one lossy mode to another while achieving a few percent smaller files seems not feasible.
Heck, reminds me some fella from Linuxforums who converted his old MP3 files into AAC and bragged his files are higher quality now ... Sic!

canci
Posts: 2278
Joined: 2006-09-24 11:28
Has thanked: 61 times
Been thanked: 79 times

Re: Best/Highest compression format for Debian

#5 Post by canci »

webp will also yield much better compression results than jpeg.
Gimp and many other tools that are in the repos can produce webp.
🍥

Asus VivoBook X421DA D413DA 1.0
Debian GNU/Linux 11 (bullseye) x86_64 Kernel 5.10
sway on Wayland
AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx (Picasso)
8 GB RAM, 512GB NVMe drive

User avatar
ruwolf
Posts: 433
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou
Has thanked: 1 time

Re: Best/Highest compression format for Debian

#6 Post by ruwolf »

You can try AVIF, too.
It is allegedly a bit better in compresion size (but worse in compresion speed) than HEIF...

Segfault
Posts: 991
Joined: 2005-09-24 12:24
Has thanked: 5 times
Been thanked: 12 times

Re: Best/Highest compression format for Debian

#7 Post by Segfault »

The correct solution for running out of storage is more storage. Period. Amen. And it better not be Google, they may lock you out any time when you happen to violate their rules. One prerequisite for a quality service is you pay for it.

Post Reply