LoginSignup
0
0

More than 5 years have passed since last update.

canvasのdrawImageでEdgeだけIndexSizeError

Posted at

現象

  • canvasへのdrawImageでChromeだと正常だが、Edgeだとエラー(IndexSizeError)が出る状況が発生
  • テストプログラム

原因

drawImageのsWidthとsHeightが元画像の大きさより大きい場合にEdgeだとエラーになる

Edgeのバージョンアップで解決

仕様だとどっちが正しいのか分からないけど、Edgeで修正されたらしい。

「We are pleased to report this feature is fixed in Edge 17093 and is available in our Insider Preview build.」

実際、Windows 10 April UpdateでEdgeのバージョンが上がったらエラーが出なくなった。

  • エラーあり
  Microsoft Edge 41.16299.402.0
  Microsoft EdgeHTML 16.16299
  • エラー無し
  Microsoft Edge 42.17134.1.0
  Microsoft EdgeHTML 17.17134

IE

IEは直さないようだ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0