Detect whether an WEBP or APNG is animated #161
No reviewers
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#161
Loading…
Reference in a new issue
No description provided.
Delete branch "Mergan/pleroma-fe:animated-webp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -34,0 +47,4 @@
if (!this.$store.state.instance.mediaProxyAvailable) return
// Animated JPEGs?
if (!(this.src.endsWith('.webp') || this.src.endsWith('.png'))) return
// Browser Cache should ensure image doesn't get loaded twice if cache exists
we can enforce this by setting
cache: 'only-if-cached'
in the fetch optionssee: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options
probably worth setting
otherwise this looks good
There seemed to be no difference when I tested that, but I think I found out why
Should I still add it anyway?
nah you're good, i didn't realise there was no support
is good as-is
thanks!