Live data from Hacker News

Show HN: Simple image resizing/optimization service

scaley.io

1–10 of 82 posts

Re: Show HN: Simple image resizing/optimization service

#2
I made this mainly because I wanted a service to use for my own projects - but the existing solutions were either prohibitively expensive or didn't have uptime guarantees.

The backend for the processing service is nodejs and sharp[1], processed images are cached on CloudFlare. The processing servers are a custom instance type in an autoscaling group on Google Cloud.

Any feedback is greatly appreciated!

[1] https://github.com/lovell/sharp

Re: Show HN: Simple image resizing/optimization service

#4
post #3

Looks nice. Is the service smart enough to figure out the file type, for example, image from facebook https://scontent.fbed1-2.fna.fbcdn.net/v/t31.0-8/11206479_82...

Thanks! And yes, it doesn't pay any attention to the original filename, image format is detected by the data stream. Here's that image resized to 600px wide:

https://i.scaley.io/600-max-https/scontent.fbed1-2.fna.fbcdn...

Re: Show HN: Simple image resizing/optimization service

#6
post #2

I made this mainly because I wanted a service to use for my own projects - but the existing solutions were either prohibitively expensive or didn't have uptime guarantees. The backend for the processing service is nodejs and sharp[1], processed images are cached on CloudFlare. The processing servers are a custom instance type in an autoscaling group on Google Cloud. Any feedback is greatly appreciated! [1] https://gi…

Note that sharp uses libvips which happens to be LGPL. I was wondering if this is an issue for commercial products (IANAL).

Re: Show HN: Simple image resizing/optimization service

#9
Fun feature you should add: the ability to crop around faces. I.e say you have a long and tall image and you need it to be square, you could pick the center, top, or bottom to zoom in on, which do you choose? It would be nice to set a flag and say "find the subject(s) of this photo and crop around the subject(s)".

Re: Show HN: Simple image resizing/optimization service

#10
post #2

I made this mainly because I wanted a service to use for my own projects - but the existing solutions were either prohibitively expensive or didn't have uptime guarantees. The backend for the processing service is nodejs and sharp[1], processed images are cached on CloudFlare. The processing servers are a custom instance type in an autoscaling group on Google Cloud. Any feedback is greatly appreciated! [1] https://gi…

Cloudflare does not permit storing just images in any of their plans. Their terms state that serving disproportionate amount of image or video via their service will be violation of their terms. You should check it before using it for longh term or providing cheaper cache options to users.
Post reply on HN