Extension for compression of images and pdf files

Hi, I have recently passed to Zorin Core from Linux Mint, with great improvements from an aesthetic point of view, and the fluidity of the system, however, I realized that I had not found two very useful functions that were present on Mint, or the posability given Through a specific extension of being able to compress JPG and PDF files through a function that was selected by clicking with the right button on the file, is there something similar also on Zornin?

1 Like

Hi, welcome to Zorin OS!

What do you mean by "compress"? On Linux Mint I have an option on the context menu called "Compress..." but that only creates an archive, similar to .zip files. It does not do any image manipulation. Did you not install maybe something else separately?

In any case, I'm pretty sure that you'd have to use some sort of extension for that either way, as I'm not sure something like that exists out of the box. I would recommend looking into this thread to setup the context menu for the images:

And some similar threads for reference:

Hi

For quick PDF compression without installing anything you can also use an online tool like compress PDF files from ilovepdf2.com which works directly in the browser and is helpful when you just need a fast solution

If you're looking for a built-in extension, sometimes the Nautilus "Image Converter" or "PDF Resizer" scripts work well, but they can be a bit hit or miss depending on which version of Zorin you're running.
If you just need to get it done quickly without messing with terminal commands or broken extensions, I usually just use a web tool to save the headache. I've had decent luck with PDF Compressor - Reduce PDF File Size Online for PDFs lately - it's pretty straightforward and doesn't seem to mess up the formatting as much as some of the others.

For extension for compression of images and pdf files you can try this free extension (https://chromewebstore.google.com/detail/pdf-champ-free-pdf-tools/cakbepehbnckifldldinacgpnienicea)

Hi and welcome.

You don't need to go online to compress pdfs or use extensions:

sudo apt-get install pdf2djvu

Then, to use it, we execute:

pdf2djvu file.pdf -o file.djvu

For this to work, don't forget to replace file.pdf and file.djvu with the corresponding file paths.

See how my 153 Mb pdf gets shrunk to a 12.9 Mb DjVu (Déjà vu) file which you can view without loss of quality in the DjVu viewer - DjView4.

Thankfully for us, LizardTech behind the technology of DjVu gave it a GPL licence.

I installed all the necessary bits via Synaptic Package Manager:

The whole purpose of DjVu was to enable pdfs to be compressed to as low as 10% but still have the same quality as the bloated .pdf.

I think I will be uploading DjVu files to my Cloud Storage in future for the Unofficial Manuals! :wink:

With regards to .jpeg compression/resizing:

[Addendum: If I ran that command image above it would say it could not find the pdf. So, make sure you navigate in the terminal to the location of the file first. In my case it would be:

cd Downloads

then enter the command.

If you have pdf to convert is stored in Documents:

cd Documents

Also note that long file names in .pdfs have to be broken up with the back slash symbol ( \ ) after each word if more than 1 word. So the solution is either to rename with underscores between each word or rename the file with one word that you recognise that reflects the pdf content.]

I will include this in the Unofficial Manual for Zorin 18.1 Core.

1 Like

For compressing PDF Files on Zorin, You could use the Nautilus Extension from @Nourpon:

Or You can use his new File Manager what has that (and many) more integrated:

2 Likes