Use or convert color profiles for thumbnail generation
- Ngôn ngữ chính
- Python
- Star
- 46.7k
- Fork
- 1.9k
- Merge trung bình
- 9 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 4
Mô tả
### Is your feature request related to a problem? Please describe.
When viewing thumbnails of HDR images with HDR color profiles (such as P3, Rec.2020, AdobeRGB etc.) in copyparty, they appear dull and almost greyscale.
### Describe the solution you'd like
I'd like thumbnails to properly honor the color profiles of the original files. Two potential approaches:
1. Convert the image to the sRGB color profile before generating thumbnails, ensuring consistent and accurate display across devices.
2. Embed the original color profile into the thumbnail, allowing browsers with HDR support to render them in high quality.
### Describe alternatives you've considered
Currently, there's no good workaround—either accept the dull thumbnails or avoid using HDR images altogether. I've considered manual conversion into extra subfolders for quick viewing (cf. screenshots).
### Additional context
**HDR images saved in Display-P3 color space**
**SDR images saved in sRGB color space**
Hướng dẫn đóng góp
Hướng nghiên cứu
Xem xét mã tạo thumbnail trong copyparty, có thể nằm trong một module xử lý hình ảnh. Nghiên cứu các thư viện như PIL/Pillow về khả năng hỗ trợ cấu hình màu. Xác định cách trích xuất và chuyển đổi (sang sRGB) hoặc nhúng các cấu hình màu. Kiểm tra các test hiện có cho việc tạo thumbnail để hiểu hành vi hiện tại và thêm các test cho tính năng mới.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- backend, data-visualization
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 40/100