4
2 Comments

What are the best practices for dynamic image processing?

Hi Indie Hackers! I will explain how we do dynamic image processing at image4io.

☻ Store original image
☻ Set up a high-performance HTTP server with image processing features and connect it to your image store.

Then when an HTTP request comes:

  1. Extract image manipulation parameters from URL
  2. Fetch original image from storage
  3. Apply manipulations with the parameters you extracted from URL
  4. Deliver the final image. (Use image CDN)

You can play with the dynamic URL below to dynamically resize image:

http://cdn.image4.io/i4io/w_400/demo-images/hummingbird.jpeg
(Hint: Put w_563 instead of w_400 to change image’s width to 563.)

Here is how we do dynamic image processing at image4io.

posted to Icon for group Developers
Developers
on March 13, 2020
  1. 2

    Cool service. The timing of this is relevant... I just implemented an /api/thumbnail?url=<image url> endpoint on my MVP to generate a small thumbnail, which is cached by AWS CloudFront so future calls for the thumbnail are served by the CDN (I don't store the image anywhere). I was thinking it would probably make a great service, and here you already have it!

    If my MVP ends up getting traction I'll definitely look at utilizing your service.

Trending on Indie Hackers
710% Growth on my tiny productivity tool hit differently, here is what worked in January User Avatar 35 comments You roasted my MVP. I listened. Here is v1.3 (Crash-proof & 100% Local) User Avatar 26 comments Why I built a 'dumb' reading app in the era of AI and Social Feeds User Avatar 17 comments Our clients have raised over $ 2.5 M in funding. Here’s what we actually do User Avatar 14 comments I built a tool to search all my messages (Slack, LinkedIn, Gmail, etc.) in one place because I was losing my mind. User Avatar 12 comments How I got my first sale from a forgotten project User Avatar 10 comments