Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Return image buffer instead writing to output #41

Open
Timmimim opened this issue Aug 10, 2017 · 2 comments
Open

Return image buffer instead writing to output #41

Timmimim opened this issue Aug 10, 2017 · 2 comments

Comments

@Timmimim
Copy link

Hello there,

I am currently developing a tool that will automatically extract images from an HTML document as Buffers, compare them, and create a 'diff-document' containing the output images from a blink-diff comparison of images with equal index.

For performance reasons, it is not optimal for me to have blink-diff write .png-files, only for me to read them as Buffers again.

However, I am for a while now failing to find a way to return the Output-Image as a Buffer, or in any way get an output convertible to such.
Can you help me with that? That would be very much appreciated!

Kindest regards in advance,
Timm Kühnel

with the o2r-project
Institute for Geoinformation
WWU Muenster, Germany

@qrpike
Copy link

qrpike commented Oct 24, 2017

This would be very helpful. I also noticed the output.js uses writeFileSync to actually write the file. Is there a reason this is not done async?

@qrpike
Copy link

qrpike commented Oct 24, 2017

@Timmimim I just went ahead and forked it and made the necessary changes.

Here is the PR: #44

Hope this helps

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants