Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Disable clientside image optimization in iOS Safari #19790

Merged
merged 1 commit into from Jan 9, 2023

Conversation

martin-brennan
Copy link
Contributor

There are various performance issues with the Canvas in iOS Safari
that are causing crashes when processing images with spikes of over 100%
CPU usage. The cause of this is unknown, but profiling points to
CanvasRenderingContext2D.getImageData() and
CanvasRenderingContext2D.drawImage().

Until Safari makes some progress with OffscreenCanvas or other
alternatives we cannot support this workflow. We will revisit in 6
months.

This is gated behind the hidden composer_ios_media_optimisation_image_enabled
site setting for people who really still want to try using this.

There are various performance issues with the Canvas in iOS Safari
that are causing crashes when processing images with spikes of over 100%
CPU usage. The cause of this is unknown, but profiling points to
CanvasRenderingContext2D.getImageData() and
CanvasRenderingContext2D.drawImage().

Until Safari makes some progress with OffscreenCanvas or other
alternatives we cannot support this workflow. We will revisit in 6
months.

This is gated behind the hidden `composer_ios_media_optimisation_image_enabled`
site setting for people who really still want to try using this.
@martin-brennan martin-brennan changed the title FIX: Disable image optimization in iOS Safari FIX: Disable uppy image optimization in iOS Safari Jan 9, 2023
@martin-brennan martin-brennan changed the title FIX: Disable uppy image optimization in iOS Safari FIX: Disable clientside image optimization in iOS Safari Jan 9, 2023
@martin-brennan martin-brennan merged commit c317728 into main Jan 9, 2023
@martin-brennan martin-brennan deleted the issue/disable-image-opt-ios-safari branch January 9, 2023 02:16
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/client-side-image-optimization-enabled-by-default/197617/3

@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/faster-and-smaller-uploads-in-discourse-with-rust-webassembly-and-mozjpeg-blog/196998/39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants