Skip to content

vips_thumbnail: (CIE)LAB TIFF to sRGB #730

Closed
@kleisauke

Description

@kleisauke

It seems that vips_thumbnail has some issues with processing a (CIE)LAB TIFF to the sRGB colourspace.

Input image
sRGB profile

Input image to sRGB png

vipsthumbnail cielab-dagams.tiff \
    --size 200x \
    -o %s_thumbnail_srgb.png \
    --eprofile sRGB.icm

Warnings:

(vipsthumbnail:17830): VIPS-WARNING **: Incompatible type for "RichTIFFIPTC"; tag ignored (x8)
(vipsthumbnail:17503): VIPS-WARNING **: icc_transform: intent 1 (relative) not supported by input profile; falling back to default intent

Output (wrong):
cielab-dagams_thumbnail_srgb

Input image to sRGB png with the perceptual intent

vipsthumbnail cielab-dagams.tiff \
    --size 200x \
    -o %s_thumbnail_srgb_percep.png \
    --intent perceptual \
    --eprofile sRGB.icm

Warning (x8):

(vipsthumbnail:17830): VIPS-WARNING **: Incompatible type for "RichTIFFIPTC"; tag ignored

Output (wrong):
cielab-dagams_thumbnail_srgb_percep

Input image to png (without the --eprofile flag)

vipsthumbnail cielab-dagams.tiff \
    --size 200x \
    -o %s_thumbnail.png

Same warnings as the second command.

Output (correct):
cielab-dagams_thumbnail

Tested with libvips 8.6.0-alpha2.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions