New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tiff doesn't support buffer #103
Comments
Same here ! |
I use a |
same issue here |
@geogeim it's the other way around. Tiff isn't supported when using the async api for files. but if you already have an entire tiff file in buffer, you can pass the buffer to |
hi @netroy , I already try using imageSize instead of getImageSize, the error still happen, is there any workaround for this? |
@wildansupernova can you please share the code with us? |
thanks for replying @netroy here the example repo https://github.com/wildansupernova/image-size-test-tiff-error , you can try the error
let me know your though about this |
@wildansupernova TIFF don't support streams or buffers (yet). import { promisify } from "util"
import { imageSize } from "image-size"
const sizeOf = promisify(imageSize)
const runExample = async () => {
const dimensions = await sizeOf("0d63278b-ec67-41d9-b156-88e65d4edacb.tiff")
console.log(dimensions)
}
runExample() |
@netroy ok, thanks for the clarification |
Any update with this? Would love to be able to support TIFF images from a buffer. |
Hi all,
I can see some previous issued, and i know, tiff image was suppot from buffer.
But, to day, i get error, that say: "Tiff doesn't support buffer" when try to get dimenstion of a tiff image.
I'm using newest version (0.6.1) from npm https://i.imgur.com/vSqORFQ.png
My code:
var dimensions = sizeOf(response.Body);
What is wrong in here?
Can you help me on this case?
The text was updated successfully, but these errors were encountered: