We don't want to keep the media on the server so we need to remove all situations where the module falls back to the Magento media path.
How do I transform this
$imageUrl = $helperImport->init($_product, 'product_base_image')->keepAspectRatio(true)->resize('300', '300')->getUrl();
At the moment it produces:
https://res-2.cloudinary.com/mowdirect/catalog/product/placeholder/default/image.gif
but when the media folder is present it produces this
https://res-5.cloudinary.com/mowdirect/image/upload/c_limit,dpr_2.0,f_auto,h_250,q_auto,w_300/v1/media/catalog/product/u/n/untitled_design_10_.png
I'm guessing that the built in function uploads the image in order to transform it... when it isn't present locally how do I find the Cloudinary URL and then transform it?
We don't want to keep the media on the server so we need to remove all situations where the module falls back to the Magento media path.
How do I transform this
$imageUrl = $helperImport->init($_product, 'product_base_image')->keepAspectRatio(true)->resize('300', '300')->getUrl();At the moment it produces:
https://res-2.cloudinary.com/mowdirect/catalog/product/placeholder/default/image.gifbut when the media folder is present it produces this
https://res-5.cloudinary.com/mowdirect/image/upload/c_limit,dpr_2.0,f_auto,h_250,q_auto,w_300/v1/media/catalog/product/u/n/untitled_design_10_.pngI'm guessing that the built in function uploads the image in order to transform it... when it isn't present locally how do I find the Cloudinary URL and then transform it?