lovell / lovell/sharp

affine operation does not expand output area to include offsets

Open
#3,632 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
JavaScript
Stars
32.7k
Forks
1.4k
Avg merge
1d 14h
Merged PRs (30d)
5

Description

## Feature request

### What are you trying to achieve?
I want to apply trasform like matrix transfrom in css. EX:
matrix(1, 0, 0, 1, 78.8, 22.2). I could use affine for scale and skew in matrix .affine([1, 0], [0, 1]), but when i tried to apply translation by using composite. It throwed error top, left must be int. Do you have anyway that i can use float in composite or special function which can apply matrix

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 tracing the affine and composite entry points in sharp and reviewing how the reported translation example is handled. Check the validation of composite's top and left values and how affine determines its output area. Done should mean translations with fractional offsets are supported without the reported error and the output includes the translated content.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
computer-graphics
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.