Transparent images will have gray edges

Đang mở
#1,510 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
computer-graphics

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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:
Ngôn ngữ chính
JavaScript
Star
10.7k
Fork
1.2k
Merge trung bình
19 giờ 16 phút
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của foliojs/pdfkit

Tất cả issue của foliojs/pdfkit

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.