WordPress.org

Make WordPress Core

Opened 7 weeks ago

Last modified 5 weeks ago

#42775 new enhancement

Support uploading files in HEIF and HEVC formats

Reported by: mattheweppelsheimer Owned by:
Milestone: 5.0 Priority: normal
Severity: trivial Version: trunk
Component: Media Keywords: 2nd-opinion needs-patch
Focuses: administration Cc:

Description

Mac OS X 10.13 High Sierra introduces support for new native image format HEIF and video format HEVF.

These aren't widely used by anyone yet, and absolutely no browsers support displaying HEIFs at present (per CanIUse.com as of 2017-12-02 https://caniuse.com/#feat=heif) — not even Safari. So this clearly isn't a big priority, but it seems likely these will become ubiquitous in time, and it would be good to at least support uploading these file formats, since they are valid media files.

This was brought to my attention by this line in Ars Technica's review of OSX 10.13:

The Ars WordPress CMS won't even let me upload HEIF files [...]

https://arstechnica.com/gadgets/2017/09/macos-10-13-high-sierra-the-ars-technica-review/

We should probably fix that. :)

Attachments (1)

noHEICallowed.png (10.1 KB) - added by jeffr0 5 weeks ago.
Error When Trying to Upload a HEIC File to WordPress

Download all attachments as: .zip

Change History (7)

#1 @mattheweppelsheimer
7 weeks ago

  • Keywords 2nd-opinion needs-patch added
  • Severity changed from normal to trivial

This ticket was mentioned in Slack in #core-media by desrosj. View the logs.


6 weeks ago

This ticket was mentioned in Slack in #core-media by jeffr0. View the logs.


6 weeks ago

This ticket was mentioned in Slack in #core-media by desrosj. View the logs.


5 weeks ago

#5 @mikeschroder
5 weeks ago

  • Milestone changed from Awaiting Review to 5.0

I think it makes sense to whitelist the type while support grows for it to be displayable/workable by readily available tools, while putting off full image support until those tools are common.

WordPress whitelists uploads of various types including TIFF that are not natively displayable. As far as I'm aware, this list usually contains most common file formats that are not considered to be a security risk.

#6 @jeffr0
5 weeks ago

I first tried to upload a HEIC file through the browser to a wordpress.com site and it didn't work because of file permissions. I then logged into the WordPress for iOS app, adding a new post and uploaded a media file directly from the phone which I assume is a HEIC file and it worked.

It turns out the file is not HEIC but is JPEG. I asked the WordPress for iOS developers if the app converts the image format and it does not.

"Hi Jeff, when we pull the image from the OS, it gives it to us in jpg. So we don’t do any converting ourselves within the app" - Will Kwon

I then tried to upload a media file from within the app to a WordPress.org powered site and it didn't work.

I've attached a screenshot of the error that's seen when trying to upload a HEIC file to WordPress.

Last edited 5 weeks ago by jeffr0 (previous) (diff)

@jeffr0
5 weeks ago

Error When Trying to Upload a HEIC File to WordPress

Note: See TracTickets for help on using tickets.