plotly / plotly/plotly.py

Image show fails in Firefox with high resolution image

オープン
#4,268 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P3
主要言語
Python
スター
18.8k
フォーク
2.8k
平均マージ
16時間 26分
マージ済み PR(30日)
21

説明

image This large 10709x2425 image fails to show with px.imshow or with add_layout_image on Firefox. It does load on Chrome.

from urllib.request import urlretrieve

import plotly.express as px
import PIL.Image

image_url = "https://github.com/plotly/plotly.py/assets/86078178/11c9876a-233c-4a2b-bfd8-5d8f197ca808"
image_file = urlretrieve(image_url)[0]

with PIL.Image.open(image_file) as image:
    px.imshow(image).show()

    downsampled_image = image.resize((image.width // 4, image.height // 4))
    px.imshow(downsampled_image).show()

This code should display a blank plot, followed by a plot of the desired image.

Versions:

plotly:  5.15.0
kaleido: 0.2.1
firefox: 114.0.2 (64-bit)
system:  Ubuntu 20.04.6 LTS

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

提供されている Python 再現コードを px.imshow と add_layout_image で開始し、10709x2425 の画像とそのダウンサンプリング版について Firefox と Chrome を比較します。これらのエントリポイントで使用される画像レンダリングの経路を追跡し、フル解像度の画像が Firefox で表示され、ダウンサンプリング版のケースを壊していないことを確認して修正を検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。