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
you have nice Module, but i can't use Buffer as File(path) directly.
importcalipersfrom'calipers';constCalipers=calipers('png','jpeg');express.post('/upload',function(req,res){// this is my Buffer of my uploaded fileCalipers.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 :(
The text was updated successfully, but these errors were encountered:
This isn't something we've added because its usually best to keep large image files on disk rather than in memory where they can end up consuming a lot of RAM.
This is a good suggestion though, I'm sure there are situations in which dealing with a buffer would be preferred.
Adding support for this for the image formats should be fairly straight forward as they load the file into a buffer from the get-go anyway. Adding support for PDFs might be a bit more complicated because it relies on Poppler and poppler-simple which doesn't support Buffers at this time.
Hey,
you have nice Module, but i can't use Buffer as File(path) directly.
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 :(
The text was updated successfully, but these errors were encountered: