Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7c351be901dd5d98663ad065d87121959bbaa3a5
https://github.com/WebKit/WebKit/commit/7c351be901dd5d98663ad065d87121959bbaa3a5
Author: Karl Dubost <[email protected]>
Date: 2025-06-02 (Mon, 02 Jun 2025)
Changed paths:
M Source/WebCore/page/Quirks.cpp
Log Message:
-----------
Adds Quirks for converting HEIC images to JPEG on canva.com
https://bugs.webkit.org/show_bug.cgi?id=293886
rdar://150489476
Reviewed by Brent Fulgham.
canva.com allows uploading images with any format. After uploading
the HEIC images, the canva.com Web application transcodes them. In some
cases, this transcoding results in corrupted images. In the better case,
the images are correctly displayed in a canvas element in the Web
application, filters can be applied to the image in the browser but then
users are unable to download the image on their computer or save the
image in the web application. These issues are not happening when the
image is JPEG.
WebKit added the possibility to automatically convert the HEIC image
format to one that the site accepts.
see
https://github.com/WebKit/WebKit/commit/1fd3fe3f407ad3cbc9fde83b03a9a0641e6d3e58
The current input on the canva.com website is
<input type="file" class="VVvG5A" tabindex="-1" aria-hidden="true"
accept="image/*">
To benefit from WebKit capability to auto-convert the file
to the format of website choice, it is necessary to specify
in the accept attribute, the accepted format, for example:
accept="image/jpeg, image/png, image/gif"
This quirk will allow WebKit to transcode the HEIC images to correct
JPEG images before uploading them to canva.com.
* Source/WebCore/page/Quirks.cpp:
(WebCore::Quirks::shouldTranscodeHeicImagesForURL):
Canonical link: https://commits.webkit.org/295722@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes