crystal-community / crystal-libraries-needed

A list of libraries that are needed or wanted for the Crystal-Language
141 stars 4 forks source link

fastimage shard #109

Closed alexanderadam closed 4 years ago

alexanderadam commented 5 years ago

It would be good to have a fastimage implementation.

One of the reasons to have this, is to protect uploads in web frameworks like Kemal, Lucky or Amber from image bombs (like this gem for Ruby's CarrierWave).

taylorfinnell commented 4 years ago

I made this inspired by fastimage. https://github.com/taylorfinnell/imagecr

It would need to be updated to latest Crystal version, and doesn't support as many image types or have as many features, but maybe it is a start

alexanderadam commented 4 years ago

Oh nice, it can even identify images over HTTP(S)! :heart_eyes:

I guess I can close this then. Thank you for your response! Maybe we should talk about shards more often. :wink:

alexanderadam commented 4 years ago

Now there's also fastimage.cr from @jetrockets which also works with JPEG and WEBP (apart from having more formats planned) :tada: