Skip to content

PXLCompressor is a joomla plugin meant for resizing and compressing images uploaded with the media manager on the fly.

Notifications You must be signed in to change notification settings

johanpeters/joomla-plg-pxlcompressor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joomla! Plugin PXLCompressor

Image compression made simple

PXLCompressor is a free Joomla! plugin, which allows you to compress and resize every image uploaded in the media manager automatically. This is especially useful if the uploaded images are not preprocessed and allows you to speed up your website drastically.

Features:

  • Automagically resize every image uploaded with the media manager component on the fly
  • Improve page speed by decreasing file sizes
  • Chose a scale method according to your needs (scale inside / outside / fit / fill)
  • Set compression levels for png/jpeg files
  • Supported file formats: JPG, PNG and GIF
  • Create thumbnails
  • PDF Compression

Currently, the following image compression services are supported, but there might be more to come:

  • ReSmush.it: a free image optimization service with unlimited number of compressions. It supports the most common file types like (PNG, JPG, GIF, BMP and TIF). However: The JImage class of Joomla! framework does not seem to support TIF, so compression of .tif files is currently not enabled. Only downside: the maximum size of a file is 5MB. But if you enable resizing, which is done before, it is very unlikely that you will ever reach this size.
  • TinyPNG: the web service allows you to compress your PNG and JPG files. You can subscribe for a free plan enabling you to compress 500 images per month without any charges. Simply fill in your API key to get started.

About PDF compression

  • PDF compression is done via iLovePDF, which allows free users 250 conversions per month
  • To enable PDF compression, head over to ilovepdf.com, register, grab your API keys and add those in plugin settings

If you enable both compression services: if TinyPNG fails for any reason, ReSmush will be used as a fallback.

It is planned to support local compression using optipng/gifsicle/jpegoptim in later versions.

Special thanks to Viktor Vogel for creating the plugin EIR, from which I took larger parts of the code.

About

PXLCompressor is a joomla plugin meant for resizing and compressing images uploaded with the media manager on the fly.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%