Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Template image defaults: thumbnail + general filters, encoding, requiredOnPublish (components-web-app#143)

Đã đóng
#198 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
documentation

Hướng nghiên cứu

The issue lists four changes to document: the thumbnail and general image filters, the JPEG and PNG encoding settings, requiredOnPublish on image components, and the re-encoding steps for existing sites. The payload names no docs page, so start with the linked components-web-app#143 and find the existing image or template-defaults pages in this repo. Done when each listed change is described accurately there, including the bucket cache-folder instruction.

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

Mô tả

From components-web-app#143, on the template's main:

  • Two filters. The Image entity generates thumbnail (500 px inset, used by the collection cards) and general (1200 px inset, rendered by the Image component, which now shows the image at its own width up to the content column).
  • Encoding: JPEG jpeg_quality: 82 (was 90; about half the size with vips) and PNG png_compression_level: 9 (lossless; 0 wrote uncompressed PNGs).
  • requiredOnPublish: true: publishing an image component without an image fails validation (422 on file).
  • Existing sites: each image gets general generated on its first read after the upgrade (the deploy's cache warm usually covers it). To re-encode old thumbnails, delete the bucket's cache/thumbnail/ folder.
  • Images go through vips (#141) and are capped at 30 MP.
Ngôn ngữ chính
Vue
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 components-web-app/docs

Tất cả issue của components-web-app/docs

Issue tương tự

Thêm issue về Documentation

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.