I am using Magento 2.3.3. I need help to add CDN url only for product's images on category and product details pages.

NOTE: Except product images, no images will come from CDN.

Thanks in advance.

2 Answers 2


Try ImageEngine with this guide: https://imageengine.io/docs/integration-guides/imageengine-magento2 There is also a plugin available in the marketplace. Just search for "ImageEngine".


You can edit the config setting web/secure/base_media_url to achieve this; it will cause any URL generated by Magento that contains the media directory to use the provided URL.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.