[wp-trac] [WordPress Trac] #53475: No error shown on uploading a WebP image when the server doesn't support editing it
WordPress Trac
noreply at wordpress.org
Tue Jun 22 03:46:36 UTC 2021
#53475: No error shown on uploading a WebP image when the server doesn't support
editing it
--------------------------+---------------------
Reporter: azaozz | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.8
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Comment (by desrosj):
Replying to [comment:3 joyously]:
> Why is the expected behavior an error? Would it be better to fall back
to JPG?
Maybe error is the wrong term here.
I think the goal is to let the user know that sub-sizes could not be
created. In my opinion, I consider that more of a warning because the
upload will succeed, but the user should be made aware that all of the
expected steps could not be taken because the server lacked the needed
support.
I don't think that there's really any way to fallback to another format
because ImageMagick/GD won't be able to read the WebP format. The notice
for HEIC format is "This image cannot be displayed in a web browser. For
best results convert it to JPEG before uploading." Personally, I see that
as a similar scenario. The only difference is that there's no way to add
support for HEIC currently. WebP support can be added.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53475#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list