Giter VIP home page Giter VIP logo

Comments (7)

jcupitt avatar jcupitt commented on July 19, 2024 1

I made a PR to improve this (but not fix your problem). I now see:

$ cat Visium_HD_Human_Colon_Cancer_tissue_image.btf | vipsheader -a stdin
vipsheader: VipsImage: unable to load source

Not a great error message, but much better.

Thanks for reporting this!

from libvips.

jcupitt avatar jcupitt commented on July 19, 2024

Hi @snowzach, wow what a monster. I'll have a look.

from libvips.

jcupitt avatar jcupitt commented on July 19, 2024

It's working fine in git master libvips:

$ vipsheader Visium_HD_Human_Colon_Cancer_tissue_image.btf 
Visium_HD_Human_Colon_Cancer_tissue_image.btf: 75250x48740 uchar, 3 bands, srgb, tiffload

I'll try some older versions.

I can view it in the current vipsdisp binary:

image

See https://github.com/jcupitt/vipsdisp, you can install the current version with flatpak install flathub org.libvips.vipsdisp.

from libvips.

snowzach avatar snowzach commented on July 19, 2024

It seems to work okay when pointing it right to the file. I want to try to use thumbnail and header from an AWS Lambda which doesn't have enough disk space to store it. So I am trying to pipe it via stdin. It doesn't seem to like that. That's what's giving the error.

from libvips.

jcupitt avatar jcupitt commented on July 19, 2024

Ahhhh I see. I'll try again.

from libvips.

jcupitt avatar jcupitt commented on July 19, 2024

I think it's because you need to be able to seek() to read TIFF --- the format is made of a set of directories and data areas you can read out randomly. This means when you pipe a TIFF into vips, it's forced to buffer the entire file in memory.

We have an env var called VIPS_PIPE_READ_LIMIT which is supposed to limit memory buffering on pipes, but it doesn't seem to be working here, I'll have a look.

However this might not help you -- a lambda with 12gb of spare memory sounds expensive.

from libvips.

snowzach avatar snowzach commented on July 19, 2024

Yeah, that's what I was afraid of... There are ways to get it more disk but it's actually capped at 10g of memory. Appreciate you looking.

from libvips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.