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 WebP support #9879

Merged
merged 2 commits into from
Feb 2, 2019
Merged

Add WebP support #9879

merged 2 commits into from
Feb 2, 2019

Conversation

acid-chicken
Copy link
Contributor

Resolves #8165

@mayaeh
Copy link
Contributor

mayaeh commented Jan 20, 2019

I think that we can't see this file type in Safari and Firefox which are currently released.

@JanJastrow
Copy link

JanJastrow commented Jan 28, 2019

@mayaeh the coming version of Firefox 56 will likely include WebP support.

@Alch-Emi
Copy link

Alch-Emi commented Feb 1, 2019

Update to this: Firefox 65 is now out and does support WebP. This includes Firefox for Android and Desktop, though not iOS.

See https://www.mozilla.org/en-US/firefox/65.0/releasenotes/

@@ -25,10 +25,10 @@ class MediaAttachment < ApplicationRecord

enum type: [:image, :gifv, :video, :unknown]

IMAGE_FILE_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.gif'].freeze
IMAGE_FILE_EXTENSIONS = ['.jpg', '.jpeg', '.png', '.gif', '.webp'].freeze
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this: Keep the support but remove the changes to the tooltip. Then it's future-proof without encouraging users to upload images that still aren't supported by Safari/iOS

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Gargron Thank you for the review! I've removed the changes at 993e3e0. Is this alright with you?

@Gargron Gargron merged commit 5092d17 into mastodon:master Feb 2, 2019
masanbol pushed a commit to masanbol/snoutsonline that referenced this pull request Feb 3, 2019
@acid-chicken acid-chicken deleted the webp branch June 20, 2019 00:21
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Add WebP support

* Remove the changes to the tooltip

refs: mastodon#9879 (review)
messenjahofchrist pushed a commit to Origin-Creative/mastodon that referenced this pull request Jul 30, 2021
* Add WebP support

* Remove the changes to the tooltip

refs: mastodon#9879 (review)
@tribela tribela mentioned this pull request Aug 28, 2021
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

Successfully merging this pull request may close these issues.

5 participants