question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tiff doesn't support buffer

See original GitHub issue

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);

response.Body is buffer of tiff image, i get it from amazon s3

What is wrong in here? Can you help me on this case?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
wildansupernovacommented, Nov 3, 2021

@netroy ok, thanks for the clarification

0reactions
netroycommented, Nov 3, 2021

@wildansupernova TIFF don’t support streams or buffers (yet). please try something this instead:

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()
Read more comments on GitHub >

github_iconTop Results From Across the Web

"Tiff.writebuffer setup error" No Space for output buffeLooking ...
Currently working on removing, and I have 16 bit per channel tiff sequence file (48 bit in all) and I keep getting this...
Read more >
Convert a tiff into a buffered image (Java) - Stack Overflow
You are trying to read a file format that is not supported by ImageIO. ... For instance: The Java Advanced Imaging API supports...
Read more >
Large size tiff does not open using bio-formats - Usage & Issues
Sometimes i get the opener error: File is not in a supported format, a reader plugin is not available, or it was not...
Read more >
Exception thrown No space for output buffer - ImageMagick
ImageMagick has resource limits to help push large images to disk to conserve memory, however, some TIFF images are decoded by the libTIFF ......
Read more >
Save Image to File - Accusoft Support
When an image is stored to file, the current image buffer (ProcessImageID ... ImagXpress supports the following multi-page image formats: TIFF, PDF, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found