Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Bug report

Describe the bug

When trying to read metadata with sharp I get the following error:

tiff2vips: subsampled images not supported

I found an issue explaining more about it in #1328, but not a clear solution. I am using libvips to extract the size of images and create thumbnails of them. Unlike in the linked issue, I am able to provide you with an image that causes such an issue. Ironically, it seems like Github doesn't support this type of file, so I need to give you a link. I hope this stays valid for long enough.

To Reproduce
Download the image and try using libvips on it. I did it via sharp(image).metadata

Expected behavior
Ideally the image should be processed correctly.

Actual behavior
The mentioned error is thrown.

Environment
(please complete the following information)

  • OS: Windows 10
  • Vips: v8.11.3

Additional context
If even with the image you can't add support to libvips, I would like to hear your opinion on what would best work as a substitute.

You must be logged in to vote

Replies: 2 comments · 2 replies

Comment options

Hi @gregordr,

I had a look at your image and it's a CR2. These are Canon camera raw files that look a bit like TIFF, but are not really TIFF. I think this is out of scope for libvips -- you need a specialist raw converter.

I think most people have moved to libraw for this type of image:

https://www.libraw.org/

It's a library-ization of the famous dcraw command-line program.

You must be logged in to vote
2 replies
@daverupp
Comment options

hello @jcupitt: Is there a way, that we can use libvips with the libraw converter?
when I look at --vips-config, we see
/LIBS/libraw.so.20.0.0

Is there a way now to call libvips somehow like this:

vips libraw bubu.cr2 x.jpg

thx for your help.

@jcupitt
Comment options

That libraw is not from libvips. Perhaps imagemagick can call it?

libvips would need to add a librawload operator.

Comment options

A dedicated LibRaw loader is now available on the master branch (which will be part of the upcoming 8.18 release).

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
4 participants
Converted from issue

This discussion was converted from issue #2435 on September 13, 2021 16:23.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.