You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Combining 2 images into 1 side by side image #3137
I am using Sharp to create thumbnails from existing images, loading pngs into nodebuffers that is. This works great image by image. However, there are times I may want 2 images to be combined in a way that the images are next to each other. Not overlayed each other. Meaning, say I have images A and B. I would want to combine both images and resize them to output like:
The input images maybe any size, but I want the combined images to be 96px in width. Which works with resize, however, I am unsure how to make the images side by side rather than overlayed.
Yes, it's possible to replicate this feature using the composite operation, which is what the join-images package appears to do. A native join feature should be much faster.
Activity
lovell commentedon Mar 15, 2022
Please see future possible enhancement #1580
james-Solutions commentedon Mar 15, 2022
@lovell This is working with an older version of sharp.
https://github.com/ccpu/join-images
lovell commentedon Mar 15, 2022
Yes, it's possible to replicate this feature using the composite operation, which is what the
join-imagespackage appears to do. A native join feature should be much faster.