gm icon indicating copy to clipboard operation
gm copied to clipboard

Append doesn't accept a buffer

Open Koosmann opened this issue 11 years ago • 6 comments

I'm trying to the append images together that are stored in buffers like so:

gm(firstBuffer).append(secondBuffer, true).write('appendedImage.jpg', function(...

This firstBuffer always works, but the secondBuffer is never recognized (it only works when append is passed a filepath).

Koosmann avatar Jan 26 '14 02:01 Koosmann

Same problem, gm.append only accepts file paths. Neither buffers not streams work

gm(stream).append(stream)

When the image is written to disk only the original image stream is there

ahdezm avatar Jan 26 '14 17:01 ahdezm

this is similar to https://github.com/aheckmann/gm/issues/211. difficult to stdin multiple images as buffers

jonathanong avatar Feb 27 '14 10:02 jonathanong

Bump. Is there any plan to fix this? If not, I'll just have to write to a temp file. I'm trying to make a sprite out of some GridFS files, would rather not involve the regular FS if I don't have to. Or I could be not lazy and try to make a PR. Meh.

Awk34 avatar Oct 28 '14 03:10 Awk34

@Awk34 make a pull request! If not someone else might make a PR, I've had a few people fixing bugs the past few weeks maybe one of them will pick this up.

rwky avatar Oct 28 '14 17:10 rwky

@rwky well, that would take actually figuring out the fix for this first.. I haven't done much more than poking around the source code

Awk34 avatar Oct 30 '14 14:10 Awk34

I need this so badly

VesperQuartz avatar Jul 20 '24 11:07 VesperQuartz