Closed Snugug closed 2 years ago
Reached out to ImgIX (who web.dev uses) to ask about GIF to Video conversion (requires an Enterprise plan, so contacted Sales for initial inquiry)
Signed up for free account, going to test. Some image related things are broken on the current dev build, namely around the home page, so looking to resolve by fixing this image issue.
ImgIX findings:
fit=max
means we can kind of blindly apply the same formatting options to all images without fear of sending enlarged images.fit=max&auto=compress,format
. This ensures that images are never served larger than their inherit size, they're automatically compressed, and the right format is automatically chosen. Additionally, because format can be automatically chosen, we don't need to wrap images in picture
tags; we can apply srcset
directly to an img
tag, greatly simplifying our overall codebase and the transforms we'll need to do.Other tools to investigate:
Other options investigated but dropped:
ImageEngine:
Cloudinary:
Overall:
picture
elements for each anyway.Will take this back to the team to discuss and make a final decision.
After discussing with the team, I think we'll likely go with ImgIX because of its Storage integration and some additional tooling other teams have built that we can share. As for GIF->Video conversion, we'll either go with ImgIX or, when a user uploads a GIF, automatically convert it to a video for them using a Firebase function and serve it straight from storage.
Closed w/#173
picture
element3P Solution Criteria
3P Solution Implementation