Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#59686 closed enhancement (duplicate)

AVIF support to media view isAttachment check

Reported by: grandplugins's profile grandplugins Owned by:
Milestone: Priority: normal
Severity: minor Version: 6.4
Component: Media Keywords:
Focuses: Cc:

Description

include 'avif' mime type in the isImageAttachment function in media-view.js

https://github.com/WordPress/WordPress/blob/master/wp-includes/js/media-views.js#L1452

Absence of avif mime type results of changing the default "Link To" field value in ATTACHMENT DISPLAY SETTINGS from None to Media File

Change History (3)

#1 @adamsilverstein
9 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #51228.

Hi @grandplugins - thanks for the ticket.

This looks like a duplicate of https://core.trac.wordpress.org/ticket/51228 which is about adding AVIF support to core. This ticket is on hold until Microsoft Edge ships support for AVIF in stable.

Closing as a duplicate, feel free to re-open if I have missed something.

#2 @almendron
9 months ago

There is no need to wait for Microsoft. Modifying the media-view.js file would solve a problem with plugins that help upload AVIFs:

A first image is uploaded
Attachment Display Settings. Link To –> selected the option “None”

A second image is uploaded
Attachment Display Settings. Link To –> automatically switches to “Media File”. It should not change. It should be the option selected in the previous image uploaded. In the example — > “None”.

Note: The problem only occurs when uploading an AVIF image.

#3 @almendron
9 months ago

Please open the ticket. Modifying "media-view.js" would solve the problem I have explained and would not affect the full development of AVIF support.
Microsoft may take years to include AVIF support.

Note: See TracTickets for help on using tickets.