Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image compression on s3 upload #6081

Closed
24jr opened this issue Jun 13, 2020 · 7 comments
Closed

image compression on s3 upload #6081

24jr opened this issue Jun 13, 2020 · 7 comments
Assignees
Labels
documentation Related to documentation feature requests Storage Related to Storage components/category

Comments

@24jr
Copy link

24jr commented Jun 13, 2020

I was looking at an ideal solution to compress image uploads (png, jpeg, svg, gif, idk others potentially). I'm using vue and I didn't know if there was some client side function I should use to minify the photos before I send them with Storage.put which I failed at trying to figure out with an npm package called imagemin.

Or I could upload the images and then have a lambda function trigger when the image gets uploaded but then what can I change the same image or if I use a different s3 bucket would Storage.get not work and same thing with the protected level.

Seems complicated so I think it would be great if there was a setting that we could have all uploads be minimized on upload by some function behind the scenes that you guys do because you're really smart and make common hard things easy. Sort of like in auth you can do add user to group on sign up but instead minimize image on upload.

@24jr 24jr added the feature-request Request a new feature label Jun 13, 2020
@amhinson amhinson added the Storage Related to Storage components/category label Jun 15, 2020
@ashika01
Copy link
Contributor

@24jr We are working on storage improvements. Will take this into account as feature request

@24jr
Copy link
Author

24jr commented Jun 15, 2020

@ashika01 ok great also wonder if there would be a good way to intertwine the predictions that detects inappropriate content on the upload or if that should be handled separately

@m98
Copy link
Contributor

m98 commented Jun 15, 2022

Is there any progress with this issue?
In my case, users can upload profile pictures, and I need to get a thumbnail size of it with Storage.get.

@abdallahshaban557
Copy link
Contributor

Hi @m98 , we are exploring enabling this. We will provide an update when we have made some progress.

@dylan-westbury
Copy link

Are we thinking to do compression in the client, or something like resizing on the fly?

https://aws.amazon.com/blogs/compute/resize-images-on-the-fly-with-amazon-s3-aws-lambda-and-amazon-api-gateway/

@nadetastic
Copy link
Member

related #10930

@nadetastic
Copy link
Member

Following up here - we've identified this as a documentation improvement to provide suggestions on how solve this and have will be tracking this request as an issue in the docs repo instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation feature requests Storage Related to Storage components/category
Projects
None yet
Development

No branches or pull requests

7 participants