Using the Sirv extension for Magento

On this page

The Sirv extensions for Magento 1 & 2 are the best way to optimize and deliver your Magento images rapidly.

Highlights

  • Optimizes images smaller than any other Magento extension.
  • Delivers images rapidly, from Sirv's global CDN.
  • Intelligently creates the most optimal image per device/browser, on-the-fly.
  • Installs in under 5 minutes.
  • Works on any Magento website.

Learn more about the Magento CDN extension key features.

Download

Feature list

  • Automatic synchronization from your Magento server to the Sirv image hosting platform.
  • Best-of-class image optimization, including automatic WebP serving, with typical 50-70% reduction in file-size.
  • Instant image resizing and popular transformations (crop, canvas, rotate, blur, vignette, effects).
  • CDN for delivering Magento product images, static images and files (CSS/JS).
  • Image watermarking and text overlays.
  • Automatic retina image delivery to hi-res screens.
  • Full control over compression settings.
  • Responsive imaging (with adjustment to Magento template).
  • Lazy-loading (with adjustment to Magento template).
  • Supports all current and future versions of Magento 1 & 2.

Installation

Magento 2 installation

1. Download the Sirv Magento 2 extension (zip) or get it from the Magento 2 image CDN extension page on Magento Marketplace.

2. Go to System > Web Setup Wizard in your Magento admin and click the Component Manager link.

3. Find the Sirv component in the list and click “Enable”.

4. Create your Sirv account and go to the Settings page.

5. Copy the Sirv S3 credentials from your Settings page and paste them into the settings in the Sirv extension for Magento.

6. The extension will start working as soon as you have entered your S3 credentials and the "Enable Sirv" is set to "Yes".

Magento CDN settings for Magento 2

The Magento 2 extension can also be installed from the command line.

Magento 1 installation

1. Download the Sirv Magento 1 extension (zip) or get it from the Magento 1 image CDN extension page on Magento Marketplace.

2. Unpack the zip file to your computer, then upload it to your Magento server.

3. Refresh the Magento cache.

4. Create your Sirv account and go to the Settings page.

5. Copy the Sirv S3 credentials from your Settings page and paste them into the settings in the Sirv extension for Magento. You'll find the settings page by navigating to System > General > Sirv.

6. The extension will start working as soon as you have entered your S3 credentials and set "Enable Sirv" to "Yes".

Magento CDN settings for Magento 1

Usage

The Sirv CDN extension for Magento will copy your Magento media gallery images to your Sirv account. It will stay in sync, by automatically copying new images to your Sirv account the first time they are requested (typically within 1 second). Once on Sirv, they are resized, optimized, cached and served by our Magento CDN.

After installation, we recommend performing a full sync, by clicking the "Sync media gallery" button. All your images will be copied to Sirv. It can take many minutes or even hours for very large libraries:

Sync media gallery to Sirv Magento CDN

All image processing is handled by Sirv, instead of your Magento server, therefore reducing your server load and accelerating page loading for your users around the world.

You can also copy your other images to Sirv (banner, slideshows, icons etc.), to benefit from Sirv's dramatically smaller file-size and CDN delivery. An automated solution will be released in a future extension version, meanwhile, you can manually update image URLs in your Magento templates. Even JS & CSS files can be delivered from our Magento CDN - talk with our support team about this.

The "Flush Image Cache" button will delete the synced images from your Sirv account and empty the local database of synced image records created by the Sirv extension. Use this button if your images become out of sync, for example when you've deleted many images from Magento and wish for them to be deleted from Sirv too. After flushing the cache, your images will begin to sync on-demand again.

Technical description

The Sirv extension overrides Magento's image class, using the same image from your Sirv account. If the image has been synced previously, it is served from Sirv. If the image hasn't been synced previously, the Magento extension copies it to Sirv, then serves it. If copying takes more than a few seconds, Sirv serves the image from your Magento server, so the user doesn't wait. Once copied, the Sirv Magento extension updates its database and serves optimised images from Sirv in future.

Changelog

Magento 1

  • v2.1.0
    November 29, 2019

    Optimization of sync process.
    Added warming the cache by prefetching DNS.
    Improved module settings page.
    Minor bug fixes.

  • v2.0.11
    November 29, 2019

    Minor bug fixes.

  • v2.0.10
    November 15, 2019

    Improved compatibility with Magento compiler.
    Improved module settings page.

  • v2.0.9
    September 2, 2019

    Small bug fixed.

  • v2.0.8
    August 5, 2019

    Improved module settings page.
    Improved fetching images process.
    Small bug fixed.

  • v2.0.7
    July 30, 2019

    Small bug fixed.

  • v2.0.6
    July 26, 2019

    Small bug fixed.

  • v2.0.5
    July 24, 2019

    New Sirv CDN support added.
    Optimization of sync process.

  • v2.0.4
    June 13, 2019

    Small bug fixed.

  • v2.0.3
    June 12, 2019

    Fixed an issue with double slashes in URL.

  • v2.0.2
    May 24, 2019

    Optimization of sync process.
    Improved module settings page.

  • v2.0.1
    May 21, 2019

    Optimization of sync process.

  • v2.0.0
    April 26, 2019

    Added REST API integration.
    Optimized S3 usage.
    Small bug fixed.
    Improved module settings page.

  • v1.2.6
    April 18, 2019

    Optimized S3 usage.

  • v1.2.5
    October 2, 2018

    Fixed fatal error on choosing store view on 'Manage Categories' page.

  • v1.2.4
    August 13, 2018

    Fixed an issue with wrong placeholder URL.

  • v1.2.3
    March 12, 2018

    Added 'Custom domain' option.

  • v1.2.2
    October 17, 2017

    Improved module settings page.

  • v1.2.1
    September 18, 2017

    Fixed an issue with category images.

  • v1.2.0
    September 8, 2017

    Added link to module settings in the System menu.
    Improved caching.
    Improved module settins page.

Magento 2

  • v2.1.0
    February 14, 2020

    Improved support for Magento v2.3.x.
    Improved support for other MagicToolbox modules.
    Improved synchronization process.
    Small bug fixed.

  • v2.0.5
    November 29, 2019

    Improved module settings page.
    Minor bug fixes.

  • v2.0.4
    November 12, 2019

    Improved synchronization process.

  • v2.0.3
    November 8, 2019

    Added warming the cache by prefetching DNS.
    Improved module settings page.
    Minor bug fixes.

  • v2.0.2
    October 9, 2019

    Improved module settings page.

  • v2.0.1
    October 8, 2019

    Improved support for Magento v2.1.

  • v2.0.0
    October 7, 2019

    Added REST API integration.
    Optimized S3 usage.
    Small bug fixed.
    Improved module settings page.

  • v1.1.10
    August 13, 2019

    Improved synchronization process.

  • v1.1.9
    July 17, 2019

    Optimized flushing cache process.

  • v1.1.8
    July 16, 2019

    Small bug fixed.

  • v1.1.7
    July 15, 2019

    Optimized CDN usage.

  • v1.1.6
    April 18, 2019

    Optimized S3 usage.

  • v1.1.5
    February 13, 2019

    Improved support for PHP 5.

  • v1.1.4
    February 11, 2019

    Improved support for Magento v2.0, v2.1, v2.2.

  • v1.1.3
    February 5, 2019

    Fixed an issue with Magento 'Minify JavaScript Files' option.
    Improved compatibility with Magento v2.3.
    Fixed an issue with spaces in 'Folder name on Sirv' option's value.
    Fixed an issue with non-alphanumeric characters in watermark url.

  • v1.1.2
    November 29, 2018

    Optimization of S3 usage.

  • v1.1.1
    November 6, 2018

    Optimization of sync process.

  • v1.1.0
    September 28, 2018

    Improved caching.
    Improved module settings page.

  • v1.0.9
    September 4, 2018

    Optimized gallery synchronization.

  • v1.0.8
    June 27, 2018

    Improved media gallery synchronization.

  • v1.0.7
    May 30, 2018

    Added support for category images.

  • v1.0.6
    May 18, 2018

    Added support for Magento v2.2.4.
    Improved support for Magic360 module.

  • v1.0.5
    May 10, 2018

    Added button to synchronize media gallery.

  • v1.0.4
    April 10, 2018

    Fixed an issue with empty 'Folder name on Sirv' option.
    Fixed an issue with getting buckets list when user has multiple account names.
    Fixed an issue with caching image urls in some Magento version.

  • v1.0.3
    December 12, 2017

    Fixed an issue with uploading already cached images.

  • v1.0.2
    October 31, 2017

    Added support for Magento v2.2.0.

  • v1.0.1
    October 18, 2017

    Improved module settings page.

  • v1.0.0
    June 6, 2017

    Sirv module for Magento 2 created.

Support

The Sirv support team is ready to help you. As Magento experts, they can install the extension for you, assist you with customization or configure Sirv on highly customized Magento sites. Contact the team with your requirements.

Was this article helpful?

Related articles

Get help from a Sirv expert