Comments (7)
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.
Hi @snowzach, wow what a monster. I'll have a look.
from libvips.
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:
See https://github.com/jcupitt/vipsdisp, you can install the current version with flatpak install flathub org.libvips.vipsdisp
.
from libvips.
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.
Ahhhh I see. I'll try again.
from libvips.
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.
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)
- A certain combination of operations causes 2-3 minute exports HOT 1
- HEIC to JPEGXL conversion failing in Win11
- Breaking changes and versioning
- VipsForeignLoad: "bmptest.bmp" is not a known file format
- "System.StackOverflowException” in NetVips.dll
- Add an `sdf` operator HOT 1
- vips_vsnprintf own implementation is not thread safe HOT 2
- Improve EXIF handling HOT 7
- Meson does not find vsnprintf on msvc HOT 5
- How to add contour? HOT 1
- SVG embedded PNG/JPG dimensions limit
- Upscaling animated gifs bleeds the top and bottom of frames together HOT 1
- vips triggering systemlib assert on trying to load corrupt png HOT 5
- vips__region_take_ownership() is not accessible with a dynamic library build HOT 2
- vips::VImage::new_from_memory() requires a `void*`, while vips_image_new_from_memory() only wants a `const void*` HOT 2
- [Help] Amazon Linux 2023
- Webp sub-region loading produces garbled image HOT 2
- `vips_image_get_string` returns invalid pointer HOT 2
- when tiffsave,how to set label image on image information? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libvips.