Feature request: Resize to to Pixel Area Count Limit
Open
Nobody has claimed this yet.
enhancement
help wanted
- Dominant language
- JavaScript
- Stars
- 32.7k
- Forks
- 1.4k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 5
Description
It would be great if sharp could scale images to an number of pixels like imagemagick does
Examples here;
http://www.imagemagick.org/Usage/resize/#pixel
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing sharp's existing image-resize API and the linked ImageMagick pixel-area examples. Clarify how a requested pixel count should interact with image dimensions and existing resize behavior; the issue is complete when sharp supports this scaling mode with behavior matching the agreed examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100