GithubHelp home page GithubHelp logo

Comments (4)

jcupitt avatar jcupitt commented on May 12, 2024

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.

ahankinson avatar ahankinson commented on May 12, 2024

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/3

Reply to this email directly or view it on GitHub:
https://github.com/jcupitt/libvips/issues/3#issuecomment-1919634

from libvips.

jcupitt avatar jcupitt commented on May 12, 2024

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.

jcupitt avatar jcupitt commented on May 12, 2024

I'll close this, please open again if you want.

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.