[wp-trac] [WordPress Trac] #42775: Support uploading files in HEIF and HEVC formats
WordPress Trac
noreply at wordpress.org
Fri Feb 28 15:48:12 UTC 2020
#42775: Support uploading files in HEIF and HEVC formats
---------------------------------+-----------------------------
Reporter: mattheweppelsheimer | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.5
Component: Upload | Version:
Severity: minor | Resolution:
Keywords: needs-patch | Focuses: administration
---------------------------------+-----------------------------
Comment (by harveyfloyd):
NO. Automatically converting to JPG is NOT a good option. HEIC and HEIF
files contain extra information that myself and others would like to
utilize. Converting to JPG destroys that information. Creating a JPG
preview for display in a gallery or an a page would be good but uploading
the original file without modification is needed. \\
Replying to [comment:20 azaozz]:
> Been looking at this for a bit. Thinking that if the users can upload
HEIF images they will expect them to "just work" (which is the right
thing), but they won’t work as there's no browser support.
>
> Seems that currently the best way to handle HEIF images would be to
check if they can be converted to JPEGs on the server.
>
> - If yes, allow uploading, do the conversion on the server.
> - If no, show a warning/notice to the user to convert the image to JPEG
before uploading.
>
> As far as I see ImageMagick can convert HEIF to JPEG using external
library. GD cannot. That will introduce inconsistencies depending on the
hosting setup, but can be considered progressive enhancement.
>
> Moving to the 5.5 milestone to consider adding the above message and do
the conversion when supported by the server.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42775#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list