[wp-trac] [WordPress Trac] #65297: HEIC/HEIF MIME Type Mapping Is Inaccurate
WordPress Trac
noreply at wordpress.org
Mon Jun 1 07:09:23 UTC 2026
#65297: HEIC/HEIF MIME Type Mapping Is Inaccurate
----------------------------------------+------------------------------
Reporter: modi2918 | Owner: adamsilverstein
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 6.7
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Comment (by modi2918):
### Where These File Types Come From in Everyday Use
**test-heic.heic — Photos from iPhones**
This is by far the most common HEIC file users upload. Apple introduced
HEIC as the default photo format with iOS 11, and every iPhone since the
iPhone 7 captures photos in this format unless the user changes the camera
settings. A typical scenario is someone taking a photo on their iPhone,
transferring it to a Mac, and then uploading it to a website or WordPress.
These files usually use the **heic** major brand.
**test-heif.heif — Photos from Android Devices**
Many Android phones, including Samsung Galaxy and Google Pixel devices,
support the HEIF format. Unlike Apple, Android devices generally use the
**mif1** major brand, which follows the MPEG HEIF specification. Files
exported through Samsung Gallery, Google Photos, or other HEIF-compatible
applications commonly use this format. This distinction is important
because a file may have a `.heif` extension while still using the **mif1**
brand rather than **heif**, causing some file detection methods to miss it
and rely on fallback detection mechanisms.
**test-heics.heics — Apple Live Photos**
Apple Live Photos combine a still image with a short motion clip. When
exported, they can be stored as HEVC image sequences using the **hevc**
major brand and typically carry the `.heics` extension. While less common
than standard HEIC photos, users who back up or export their iPhone photo
libraries may encounter these files.
**test-heifs.heifs — Burst Photos and Image Sequences**
Some Android devices and image-processing tools generate HEIF image
sequences rather than single images. For example, burst-mode photos may be
packaged using the **msf1** major brand and saved with a `.heifs`
extension. These files can also be produced by professional imaging
software and tools that support the HEIF format, such as applications
built on libheif.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65297#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list