3 comments (3 comments)13 reactions (13 reactions)0 assignees (0 assignees)HTML1,746 stars (1,746 stars)3,102 forks (3,102 forks)batch import
enhancementhelp wanted
Description
添加针对超5M图片的压缩
Contributor guide
- Tech stack
- javascript
- Domain
- backend
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 3
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-2 days
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- unclear
- Prerequisites
- Cloudflare Workersimage compression basics
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 40
- Research direction
- The issue requests compression for images larger than 5MB. Investigate using sharp or similar library for Cloudflare Workers. Review the current upload handling code in the repository to determine where to add size check and compression logic. Consider using a library that supports both JPEG and PNG compression. Look at how Cloudflare Workers allow for image transformation and streaming. A possible implementation could check image size during upload and apply compression if exceeding 5MB.