Stock photo providers and image transformations

Hi,

In my Saas, we are using images from different sources. We allow users to upload images to our own s3 bucket. We also provide our own image bank. And we also allow users to select images from stock photo providers.

They can then resize and crop those images on our platform.

Those stock photo providers don’t provide transformations like imagekit.io. Is there any way we could connect the transformation service directly to the stock providers to be able to apply the resizing and cropping selected by the user?

ImageKit can optimize and transform images stored on external servers or storage. You can connect your S3 storage to ImageKit Integrate AWS S3 with ImageKit.io or a web server of the stock photography website Integrate Web Server with ImageKit.io - and deliver optimized / transformed images from them in real time.

The docs above cover all the necessary steps.

Thanks, I was able to make it work in one case, but in the other case I can’t make it work, even with a web proxy origin

Here is an example:

https://media.gettyimages.com/id/2188270634/fr/photo/beautiful-landscape-of-the-sand-dunes-of-the-erg-chebbi-at-sunrise-during-the-golden-hour.jpg?b=1&s=612x612&w=0&k=20&c=lSqaesJh2noT_X4_VyojJEhM9lKcCB3pw3-wYq7_N7g=

Note that if you try to tamper the url, the service returns a 400 immediately instead of serving an image

You would need to encode the entire URL (including the query parameters) that you want to proxy and then use it as https://ik.imagekit.io/imagekit_id/url_endpoint/<encoded_URL>

Can you give this a try.

Oh yes it worked. I had tried but I must have forgotten to save the configuration.

Thanks a lot!