Transparent images will have gray edges

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript

調査の方向性

Start by reproducing the issue with the provided doc.image(img_list[1], 200, 200) example and compare the transparent source image with the generated PDF. Trace the image-rendering path responsible for transparency and establish a regression case showing that transparent edges no longer appear gray. The report does not name a file or test, and environment details are missing.

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

説明

Bug Report

if an image is transparent, then edge will show gray

Description of the problem

1、The original picture looks like this:
15

2、the output pdf is this:
企业微信20240327-154142@2x

Code sample

doc
.image(img_list[1], 200, 200);

Your environment

  • pdfkit version:
  • Node version:
  • Browser version (if applicable):
  • Operating System:
主要言語
JavaScript
スター
10.7k
フォーク
1.2k
平均マージ
22時間 55分
マージ済み PR(30日)
25

環境構築

はじめの一歩

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

foliojs/pdfkit のほかの issue

foliojs/pdfkit の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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