How to optimize images with lossless compression

How to optimize images with lossless compression

Loading speed of our website is very important for many reasons including users' experience and SEO.

DJ-MediaTools is designed to display images without wasting the loading time and bandwidth.

It serves different image sizes depending on the screen width ( srcset+sizes attributes) uses  lazy loading for gallery grid, slideshow, slideshow with thumbnails, tabber and modern slider layouts.

Lossless images compression

Additionally to push the performance to the higher level you can also optimize the images weight without loosing the images quality. Technically it's called  lossless compression .

DJ-MediaTools uses free resmush.it webservice  to compress the images and you can make it to do it automatically with setting up the cron job in your website hosting panel.

Optimize images manually

If you don't have access to your hosting panel or just want to test this feature just follow these steps:

  1. Go to your Joomla! back-end
  2. Navigate to DJ-MediaTools > Images & CSS cache
  3. Click the Optimize X images button (marked with [1] on the screenshot below)

losslessly compression

Please note that you need to clear the images cache once the image optimization is completed. Refer to this article for more info: DJ-MediaTools Images & CSS cache .

Optimize images with the CRON job

Optimizing images manually is not the best solution. If you would like to keep the new galleries optimizing without any extra action you can automate it by adding the cron job in the webhosting control panel.

It may differ depends on what software is used by your hosting provider, but you probably can easily find how to add cron job in the documentation of your hosting panel. You can also ask your hosting provider directly how to add the cron job in the hosting control panel.

More : You can also try using the free cron services that are available on the web. Search for "free cron job" in your favorite search engine for the available services.

When you are ready just follow these steps to automate images optimization:

  1. Go to your Joomla! back-end
  2. Navigate to  DJ-MediaTools > Images & CSS cache
  3. Copy CRON URL (marked with [2] at the screenshot above) and add it to the cron job list in your hosting panel

Here is the example of full cron job command which you can use to optimize new images every day at 1:00 a.m. Just remember to replace the url with your CRON URL.





      • Related Articles

      • How to set your own path for default placeholder images

        You can provide your own path to default placeholders. By default, the path is: /components/com_djclassifieds/assets/images/ but you can change it to other if it seems easier for you (for example if you want to be able to upload those images to Media ...
      • Payments for extra images

        In DJ-Classifieds you can charge for adding ads extra images by users. Using this option is very easy and gives a wide range of possibilities. The administrator can set: free images limit (per one ad), extra image price, extra image renew price  Read ...
      • Display category images in adverts

        It's better to use the category image in some types of classified ads web sites rather than the one default image. With this new parameter enabled all adverts that have no image uploaded will pull the category image instead! Open DJ-Classifieds ...
      • How to resize images on upload

        The is a possibility to limit the amount of space used by uploaded photos. You can easily restrict the maximum width and height of uploaded images. This feature depends on the user browser and used uploader runtime.   To change the parameters, open ...
      • How to select path for storing advert images

        New parameters in images sections allow setting paths where uploaded DJ-Classifieds images will be stored. You can set paths for adverts, categories and profiles images. The uploaded images are split to different subfolders to avoid the problem with ...