-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
embedding lab TIFF to png with alpha channel fails #646
Comments
Hello, this is the first attempt I'm aware of to process a (CIE)LAB TIFF image using sharp, so congratulations. I'll need to investigate how best to fix/support this. Is this sample image you've provided either in the public domain or CC licensed as it would make an excellent addition to the test suite? (As an aside, colourspace handling will be getting a bit of a makeover with #218.) |
This image is mine, I am happy to provide it under a CCBY. In fact, it's already public on Flickr somewhere under that license.
…--
Benjamin Schuster-Böckler
[email protected]
http://twitter.com/evershelf
snap. search. share.
On 7 Dec 2016, at 12:21, Lovell Fuller ***@***.***> wrote:
Hello, this is the first attempt I'm aware of to process a (CIE)LAB TIFF image using sharp, so congratulations. I'll need to investigate how best to fix/support this.
Is this sample image you've provided either in the public domain or CC licensed as it would make an excellent addition to the test suite?
(As an aside, colourspace handling will be getting a bit of a makeover with #218.)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Commit d245526 allows the embed (and extend) operations to work with an alpha-transparency background using non-(s)RGB input images. libvips was unable to determine the colourspace as being LAB+alpha approximately here. Luckily we already know the colourspace so can pass it via the In addition, the RGBA colour passed to the This will be fixed in v0.17.0 - thanks for reporting. |
v0.17.0 now available. |
I'm experiencing a bug with a specific type of tiff file (16bit, lab) when I try to convert it to an thumbnail in RGBA with transparent background. The error message is:
Interestingly, when I set the
background
towhite
instead of{r: 0, g: 0, b: 0, a: 0}
, the error does not occur, but the background is black instead of white!I've looked through the previous discussion relating to this error, but couldn't find any clues as to what might be going on with this particular image (i.e. it has an ICC profile, and it's not a GIF)
Here's the original image:
The code looks roughly like this:
Installed tool versions:
libvips 8.5.0-Sat Nov 12 18:29:10 UTC 2016
Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: