Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 130 forks source link

Filestack/Cloudinary module #42

Open marktani opened 6 years ago

marktani commented 6 years ago

Issue by acorcutt Thursday Mar 16, 2017 at 16:37 GMT Originally opened as https://github.com/graphcool/prisma/issues/138


It would be nice to be able to use filestack.com as an alternative to your file api for large file uploading and also allow on-demand image and video processing through a query such as

{
  someFile {
     originalUrl
     mime
     previewImage: transform(format:'jpg', width:300, height:200, crop:'fit')
     largeImage: transform(format:'jpg', width:3000, crop:'limit')
  }
}
marktani commented 6 years ago

Comment by sedubois Thursday Mar 16, 2017 at 17:12 GMT


How does it compare to e.g cloudinary?

marktani commented 6 years ago

Comment by acorcutt Thursday Mar 16, 2017 at 18:18 GMT


I'm currently using a combination of uploadcare to handle uploads and cloudinary for processing... uploadcare has a nice uploader but does not support video transcodes, cloudinary supports video and other file processing but only has a basic uploader.

It looks like Filestack is the best of both, it has a nice uploader and supports video, audio and other doc transforms. It might be easier to integrate without needing extra backend hooks to store or import... just store the file id from the client side upload and query the api for on-demand transforms?

marktani commented 6 years ago

Comment by sedubois Monday Apr 17, 2017 at 12:10 GMT


FYI Graphcool already has a basic image size transform: https://www.graph.cool/docs/reference/platform/file-management-eer4wiang0/#image-api

marktani commented 6 years ago

Comment by marktani Sunday Sep 17, 2017 at 16:29 GMT


A filestack and cloudinary module could be added to https://github.com/graphcool/modules. In https://github.com/graphcool-examples/functions/, there's already an cloudinary example.