I want to insert and use an image urls from my own CDN directly into the database. I want to do this to save space because I use the images in other applications as well.
I've wrote a function that populates this two tables: catalog_product_entity_media_gallery and catalog_product_entity_media_gallery_value.
This is what I've inserted as value : http://cdn.domain.com/products/nike/448224-010-00.jpg, while this is the way magento does: /4/4/448224-010-00.jpg
So far so good. But now magento creates an url like this: http://www.domain.com/media/catalog/product/http://cdn.domain.com/products/nike/448224-010-00.jpg
Is there a way to tell magento (extension or module) not to use the media folder and base url? I also want the width or height to be added to the url when it's called.
Add querystring like this: ?w=100&h=100