Skip to content

how could we stitch images into a bigger one? #699

Closed

Description

@ldenoue

Jimp, another NodeJS library https://github.com/oliver-moran/jimp, has a convenient method blit that lets me paste several images into a bigger one.
In my application, I don't need stretching, but simply stitch vertically several images that have the same width, without overlap.
Would you have suggestions on how to do it with sharp (much faster than Jimp).

Activity

  1. lovell commented on Feb 2, 2017

    @lovell
    Owner

    Hello, you could try a variant of the reduce-based approach taken in #405 (comment), modified so that the initial image is already of the final required dimensions and the call to overlayWith provides an incrementing top coordinate.

  2. ldenoue commented on Feb 2, 2017

    @ldenoue
    Author

    Thanks a lot I wouldn't have found it by myself.

  3. lovell commented on Mar 23, 2017

    @lovell
    Owner

    Closing due to inactivity but please re-open if questions remain.

  4. kawka-maciej commented on Jan 28, 2021

    @kawka-maciej

    The link in your response @lovell redirects to some weird sites.

  5. lovell commented on Jan 28, 2021

    @lovell
    Owner

    @kawka-maciej Thanks, have removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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