The expected image for test freetype/bug00132 appears to be incorrect

オープン
#628 コメント 8 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c
領域
testing

調査の方向性

The test is freetype/bug00132.c, and its reference image is freetype/bug00132_exp.png. Build and run that test to reproduce the mismatch, then compare the actual output with the expected image to see the background difference the report describes. Done means the reference image renders the glyphs visibly and the test passes on the platforms in the report. Check the thread first, since the correct background colour may need a maintainer decision.

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

説明

help wanted tests

In versions of GD 2.2.5 and 2.3.0 (and perhaps previously) the test freetype/bug00132 fails on AIX with the message

    freetype/bug00132.c:36: Total pixels changed: 9 with a maximum channel difference of 255.
    freetype/bug00132.c:38: Reference image and destination differ

Testing on Fedora 31 ppc64le Linux, this test also fails (returns 1) and the image produced is identical to the result on AIX, but it does not display the error message.

The expected image freetype/bug00132_exp.png displayed in Firefox shows white thetasym and theta on a WHITE rectangular background (same using paint), which is difficult to see.

The images produced by AIX and Fedora 31 ppc64le show white thetasym and theta on a BLACK rectangular background.

The image produced is written to a temporary file in /tmp by introducing the following debug code

# diff freetype/bug00132.c freetype/bug00132.c.ORIG
26d25
<       error = gdImageFile(im, "/tmp/bug00132_pre_act.png");
35d33
<       error = gdImageFile(im, "/tmp/bug00132_act.png");
主要言語
C
スター
985
フォーク
289
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

libgd/libgd のほかの issue

libgd/libgd の issue をすべて見る

似ている issue

C の issue をもっと見る

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

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