mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Remove scRGB alpha tiff warning for vips 8.15+
This commit is contained in:
parent
707a24e59d
commit
f79946905d
@ -153,16 +153,16 @@ vips_black_go(VipsImage **out, int width, int height, int bands)
|
||||
return res;
|
||||
}
|
||||
|
||||
/* Vips loads linear alpha in the 0.0-1.0 range but uses the 0.0-255.0 range.
|
||||
* https://github.com/libvips/libvips/pull/3627 fixes this behavior
|
||||
*/
|
||||
int
|
||||
vips_fix_scRGB_alpha_tiff(VipsImage *in, VipsImage **out)
|
||||
{
|
||||
#if VIPS_SCRGB_ALPHA_FIXED
|
||||
#warning Revise vips_fix_scRGB_tiff
|
||||
/* Vips 8.15+ uses 0.0-1.0 range for linear alpha, so we don't need a fix.
|
||||
*/
|
||||
return vips_copy(in, out, NULL);
|
||||
#else
|
||||
/* Vips prior to 8.14 loads linear alpha in the 0.0-1.0 range but uses the 0.0-255.0 range.
|
||||
*/
|
||||
VipsImage *base = vips_image_new();
|
||||
VipsImage **t = (VipsImage **) vips_object_local_array(VIPS_OBJECT(base), 4);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user