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

Add HEIF image types to variable content types #43119

Merged
merged 1 commit into from
Aug 29, 2021

Conversation

brian-kephart
Copy link
Contributor

Summary

AVIF images are more efficient than WebP and are supported in most browsers.
HEIC is the default image format on Apple devices.
Recent versions of Imagemagick handle these image types via the HEIF module, so it seems appropriate to add them as variable content types by default.

Of these formats, only AVIF is supported by browsers, and support is not universal yet, so I did not change the default for ActiveStorage.web_image_content_types. Even WebP is not included in this array by default, so I interpreted this default as "image types supported by all browsers."

@guilleiguaran guilleiguaran merged commit 9b60111 into rails:main Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants