stdImage: add WebP decoding support

Đang mở
#178 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
visualbasic
Lĩnh vực
desktop-dev

Hướng nghiên cứu

Read the stdImage module (e.g., src/stdImage.cls) to locate CreateFromFile and CreateFromBinary and their Data URL/URL callers. Review the linked Microsoft WIC/GDI+ docs to evaluate a WebP decoder. Implement decoding with fallback errors, then add the listed tests, update changelog.md and regenerate docs.json. Done means WebP input works consistently with docs updated.

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

Mô tả

Split out from #98 so binary/Data URL export and clipboard improvements can proceed independently.

Current behaviour: stdImage.CreateFromFile rejects .webp files. GDI+ has no built-in WebP decoder, so this needs a separate decoding approach.

Scope:

  • Choose a decoder: evaluate WIC with an available WebP codec versus an optional external decoder. Document platform, installation, deployment, and licensing requirements.
  • Keep existing image formats usable by importing stdImage alone, without mandatory new dependencies.
  • Support WebP input consistently through CreateFromFile and CreateFromBinary, and through their Data URL and URL callers.
  • Define transparency/background and animated WebP behaviour.
  • Provide clear errors for missing codecs and malformed/unsupported data, with native resource cleanup.
  • Add lossy/lossless, transparency, invalid-input, missing-codec, existing-format, and 32/64-bit Office checks where available.
  • Update structured documentation, examples, changelog.md, and regenerate/compare docs.json.

WebP encoding/export is outside the initial scope. Preserve existing stdImgFormat numeric values if extended.

References:
https://learn.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-using-image-encoders-and-decoders-use
https://learn.microsoft.com/en-us/windows/win32/wic/-wic-about-windows-imaging-codec

Ngôn ngữ chính
VBA
Star
412
Fork
70
Merge trung bình
20 giờ 38 phút
Pull request đã merge (30 ngày)
18

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 sancarn/stdVBA

Tất cả issue của sancarn/stdVBA

Issue tương tự

Thêm issue về Desktop Dev

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.