← Back to release summary

Support ImageSmoothingQuality in PaintCanvas

Category
Miscellaneous
Type
No developer-visible change
Status
Enabled by default (Chrome 134)
Intent stage
None

Summary

Add support for the imageSmoothingQuality attribute on Paint Canvas. It allows a web developer to choose the quality/performance tradeoff when scaling images. There are 3 options in total for imageSmoothingQuality: low, medium and high. Chrome platform status entry for its launch on Canvas 2D: https://chromestatus.com/feature/4717415682277376

Motivation

ImageSmoothingQuality has launched in both Canvas 2D and OffscreenCanvas back in 2016. Per PaintCanvas Spec ( https://drafts.css-houdini.org/css-paint-api-1/#paintrenderingcontext2d), this property is supposed to be launched in Paint Canvas as well. This helps PaintCanvas API to catch up with Canvas 2D API.

Standards & signals

Samples: https://jsfiddle.net/khru0mzj

View on chromestatus.com