Skip to content

Nice Module but i can' use Buffer directly #58

@xelaz

Description

@xelaz

Hey,

you have nice Module, but i can't use Buffer as File(path) directly.

import calipers from 'calipers';

const Calipers = calipers('png', 'jpeg');

express.post('/upload', function(req, res) {
  // this is my Buffer of my uploaded file
  Calipers.measure(req.files.image.data).then(...).catch(...);
});

Or if i have Stream and i get the Buffer.

The Problem is, that image-size show me wrong sizes. And i was trying your module but i can't use it without Buffer interface :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions