Optimizer on File Manager sometimes changes book cover

Đang mở
#3,896 0 bình luận 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
c
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating the file-manager upload flow for “Optimize and Upload” and the EPUB optimization code; the issue does not name files or tests. Compare how the optimizer chooses a cover with EPUBs containing publisher-note images, using an affected EPUB if one is provided. Done when optimization preserves the original book cover; add or run a regression test if the project has a relevant test entry point.

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

Mô tả

bug triage
Device

Xteink X4

Affected Version

1.6.5

Describe the Bug

It happened twice that the built in optimizer on the file manager changed the book cover to a different image in the epub. I was able to fix one by simply trying again, but I was also able to replicate it by trying again. The other, I was not able to resolve by re-trying and had to use a different optimizer. The wrong images it grabs are images from the publisher's notes at the end of the books.

Steps to Reproduce
  1. File Manager > Upload > Select offending titles
  2. Tick Optimize > Optimize and Upload

I can provide the epub files where I ran across this issue.

Expected Behavior

I expected the book covers to stay the same after the optimize and upload, but they were changed to different images in the book.

Relevant Log Output/Screenshots

Ngôn ngữ chính
C
Star
8.2k
Fork
2k
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
176

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 crosspoint-reader/crosspoint-reader

Tất cả issue của crosspoint-reader/crosspoint-reader

Issue tương tự

Thêm issue về C

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.