[wp-trac] [WordPress Trac] #62272: Error when uploading .heic image
WordPress Trac
noreply at wordpress.org
Sat Oct 26 00:00:49 UTC 2024
#62272: Error when uploading .heic image
--------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+---------------------
Comment (by azaozz):
Replying to [comment:14 ironprogrammer]:
> it would help to at least add support for `image/heif`, as originally
reported for this ticket, since that seems to be a common mime for sample
spec images. A `.heic` file returning `image/heif` should be considered
valid.
Right, my thinking too. The other two mime types can be "partially
supported" for now, i.e. don't prevent uploading, but the results of
converting them to JPEGs may vary.
> I don't think original uploads should be renamed to match the mime. The
HEIC designation hints that the file has a HEVC encoded image (like
attachment:sample1.heic), which is valid as `image/heif`.
Yep, this seems most compatible. Went with 1 above: all HEIC images have
.heic file extension.
> found that ImageMagick (`magick` CLI) grabs the first frame when
converting to JPEG, so seems to work okay at a glance. However, for lack
of finding a real-world use case for this, I think supporting sequences
should wait until there's a defined need.
This is somewhat similar to the support for animated GIFs: when resized
the sub-sizes are of the first frame only. Also thinking this can be left
as-is for now and revisited if the need arises as these images seem
extremely rare for now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62272#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list