Skip to content

resize method doesn't work properly #654

@targos

Description

@targos

It somehow "zooms" in the image. This is especially visible on the nearest-neighbor version of the test.

There's probably a bug in how we iterate on the pixels.
Implementation: https://github.com/image-js/image-js-typescript/blob/main/src/geometry/resize.ts#L55-L86

We need to fix it so these tests can be enabled: https://github.com/image-js/image-js-typescript/blob/8d81c2b4094c25522b9c40aec4b6469837123352/src/geometry/__tests__/resize.test.ts#L3-L21

Reference created by https://github.com/image-js/image-js-typescript/blob/8d81c2b4094c25522b9c40aec4b6469837123352/test/img/opencv/generate.py#L15-L19

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions