Open
Bug 2010125
Opened 2 days ago
createImageBitmap() ignores sx,sy,sw,sh parameters when using resize option
Categories
(Firefox :: Untriaged, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: serguei.ivantsov, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:147.0) Gecko/20100101 Firefox/147.0
Steps to reproduce:
Using the sample 50x50 image from the manual, let's try to crop it:
createImageBitmap(image, 40, 40, 10, 10, {
resizeWidth: 50,
resizeHeight: 50,
resizeQuality: 'pixelated',
})
Actual results:
resulting image is original image
Expected results:
resulting image should be cropped using 10x10px from the right-bottom of original image and scaled to 50x50px
this works properly in Safari and Chrome
You need to log in
before you can comment on or make changes to this bug.
Description
•