Skip to content

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

@MrCsabaToth

Description

@MrCsabaToth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions