lovell / lovell/sharp

Feature request: Resize to to Pixel Area Count Limit

Open
#208 3 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.