Comments (4)
Oh dear, that looks bad.
I just tried here and it seems to work for me. I did:
$ vips im_copy wtc.jpg wtc2.tif:jpeg,tile,pyramid
to make the pyramid (the test image is 10,000 x 10,000 pixel RGB), then used:
$ vips im_copy wtc2.tif:7 test.png
to pull out the smallest level in the pyramid, then checked the file
and all looks well.
This is on Ubuntu 11.04 with vips-7.24 and vips-7.26 using the system
tiff library.
What version, platform and libtiff are you using? What sort of tiff
file caused the problem?
John
On 24 August 2011 22:49, ahankinson
[email protected]
wrote:
When writing a Pyramid TIFF image from an original high-resolution TIFF, the smallest level image will come out corrupted.
Screenshot available here:
http://dl.dropbox.com/u/1996023/vips_bad_output.png
I can provide a link to the original file as well if you need it.
Reply to this email directly or view it on GitHub:
https://github.com/jcupitt/libvips/issues/3
from libvips.
I tried the commands below (I was originally using "vips im_vips2tiff ...") and the same result.
Here is the resulting file: http://dl.dropbox.com/u/1996023/vips_test_file.tif
And the original file (warning: it's about 240MB): http://coltrane.music.mcgill.ca/Andrew/GB-ETc_MS178_001.tif
When I extract just that image layer, though, it looks fine; however, I have tried any number of image viewers (thinking it might be the viewer, and not the file) but no improvement. This is on OS X Lion.
I've tried vips 7.24 (via homebrew on OS X Lion), and both the apt-get version and a git checkout on Ubuntu 10.04 as well. All seem to have the same results. libtiff on the Lion machine seems to be 3.9.5.
For what it's worth, the ImageMagick command to create the file does the same thing, except it does it for the two smallest levels, not just the first one.
convert fname.tiff -define tiff:tile-geometry=256x256 -compress jpeg 'ptif:output.tif'
On 2011-08-27, at 8:49 AM, jcupitt wrote:
Oh dear, that looks bad.
I just tried here and it seems to work for me. I did:
$ vips im_copy wtc.jpg wtc2.tif:jpeg,tile,pyramid
to make the pyramid (the test image is 10,000 x 10,000 pixel RGB), then used:
$ vips im_copy wtc2.tif:7 test.png
to pull out the smallest level in the pyramid, then checked the file
and all looks well.This is on Ubuntu 11.04 with vips-7.24 and vips-7.26 using the system
tiff library.What version, platform and libtiff are you using? What sort of tiff
file caused the problem?John
On 24 August 2011 22:49, ahankinson
[email protected]
wrote:When writing a Pyramid TIFF image from an original high-resolution TIFF, the smallest level image will come out corrupted.
Screenshot available here:
http://dl.dropbox.com/u/1996023/vips_bad_output.png
I can provide a link to the original file as well if you need it.
Reply to this email directly or view it on GitHub:
https://github.com/jcupitt/libvips/issues/3Reply to this email directly or view it on GitHub:
https://github.com/jcupitt/libvips/issues/3#issuecomment-1919634
from libvips.
I tried your vips_test_file.tif in Preview on OS X Leopard and it doesn't work at all, you just get black pages. eog on Ubuntu shows it correctly, but only the first page, it doesn't seem to handle multi-page tiffs. Evince on Ubuntu starts rather slowly, but it does show all pages correctly, including the tricky page 8. nip2 shows all levels correctly. gimp loads all pages correctly, though doesn't show thumbnails of the pages, strangely.
So I think OS X Lion Preview, while obviously better than the Leopard one, is probably at fault.
from libvips.
I'll close this, please open again if you want.
from libvips.
Related Issues (20)
- dzsave `--skip-blanks` does not work for transparent background HOT 7
- vips left many tmp fd files "/tmp/vips-117-385983422.v (deleted)" HOT 1
- VipsForeignSave: jfif is not a known file format HOT 4
- 8.15.0: ARW images throw `Input file has corrupt header` HOT 3
- tiffsave ndpi color differences HOT 1
- Crash due to running Fourier Transform operations in parallel HOT 6
- `vips_text` memory leak HOT 6
- Tiled tiff with compression and Q>=90 yields incorrect colors in 8.15 HOT 1
- 8.15 core dumps when processing lots of files HOT 8
- RW2 images: `Input file contains unsupported image format` HOT 3
- Why is Dzsave not working?
- Support for Ultra HDR HOT 20
- `vips_cache()` + sequential seems to be broken in 8.15 HOT 2
- JPEG auto-rotate changes image size HOT 1
- jxlload.c build failure: JxlDecoderGetICCProfileSize HOT 3
- Saving a greyscale tiff pyramid fails to add predictor tags at lower levels HOT 8
- Vips::Error: VipsForeignLoad: "/path/to/file.pdf" is not a known file format - installed using homebrew on macOS Ventura HOT 1
- php Libvips mapim function HOT 1
- Scale JPEG with maximum file size? HOT 1
- lipvips need 1.0.5. of libwhy but installed is 1.0.4 HOT 12
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.