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

Use Resize Images Firebase extension to automatically shrink giant image uploads #41

Open
MrCsabaToth opened this issue May 22, 2020 · 0 comments

Comments

@MrCsabaToth
Copy link
Contributor

During the last run of IWDC there were at least 2-3 occasions when the speaker's uploaded profile photo wasn't even just a giant 3-4 MB image, but rather a 20+ MB (!!!) behemoth.

Expected Behavior

Administrators are too busy with other tasks to pay attention to this, so it'd be best if the website itself would resize the images to the optimal size automatically as part of the upload procedure.

Current Behavior

The uploaded profile photos are stored as they are provided, no transformation is done on them. Time-to-time I skim through the images and resize + web optimize them (with GIMP, Gwenview and other common Linux editors).

Possible Solution

Use the Firefox Extension of "Resize Images" to implement automatic upload resizing. Technically it's a cloud function. DeLorean v2 already has cloud functions.
See also:

Steps to Reproduce

  1. Get yourself an admin privilege for the site.
  2. Navigate to the Speakers page. You have now buttons to add or edit speaker.
  3. Pick one to Add or edit a speaker.
  4. Upload a ginormous photo (20MB+ preferred).
  5. Try to view the speakers page on a 4G connection...

Possible Implementation

@MrCsabaToth MrCsabaToth changed the title Use Resize Images Firefox extension to automatically shrink giant image uploads Use Resize Images Firebase extension to automatically shrink giant image uploads Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant