store icon indicating copy to clipboard operation
store copied to clipboard

Add caire image resizer as sample function.

Open alexellis opened this issue 7 years ago • 8 comments

I think we should add an image resizer into the store.

This one looks to have shot up to popularity with 8k stars: https://github.com/esimov/caire

It does smart things like scale/resize images while retaining the scale for faces, it can even extend the width of images etc.

Not sure of the best user interface, we could use a string like a human-readable sentence - or JSON as the input. JSON is obviously easier. Human-readable string may be: "Resize this URL https:// to 100 pixel width"

alexellis avatar Aug 13 '18 15:08 alexellis

It seems interesting, can I take a shot at this?

martindekov avatar Aug 23 '18 14:08 martindekov

Perhaps @esimov could take a look at it? My only concern is whether the resizing would time-out.

alexellis avatar Aug 29 '18 09:08 alexellis

I will give it a try once i will came back from vacation. Is there a given timeout set for the returning function?

esimov avatar Aug 29 '18 13:08 esimov

Yes we can configure it. Most return in under 10s though. Enjoy your break

alexellis avatar Sep 01 '18 17:09 alexellis

@alexellis i would opt for a json as an input source. What do you think?

esimov avatar Sep 09 '18 08:09 esimov

I think that might be a good choice. The users would just have to know how to input the data. Maybe we should extend the UI to create samples/examples of inputs?

alexellis avatar Sep 09 '18 14:09 alexellis

Hey @alexellis i have integrated Caire as an OpenFaaS function. Here is the PR https://github.com/openfaas/store/pull/41. Please check it and let me know if something is missing or needs to be corrected.

esimov avatar Sep 16 '18 14:09 esimov

It's definitely not powerful as caire but it is simple and it is written for OpenFaaS => https://github.com/openfaas/store/issues/74

psyhomb avatar Apr 21 '19 17:04 psyhomb