Skip to content

dcrawload fails on EXIF-rotated images with "images do not match between header and load" #4626

@dvdkon

Description

@dvdkon

Bug report

Describe the bug
When trying to load a RAW image with e.g. vips dcrawload or vipsthumbnail, images that are rotated - have Orientation in EXIF set to something other than "normal" - fail to process with "VipsForeignLoad: images do not match between header and load".

To Reproduce

  1. Take both example images provided.
  2. Run vips dcrawload normal.SRW normal.jpg and vips dcrawload rotated.SRW rotated.jpg

Expected behavior
Both images are converted to JPEG without any output.

Actual behavior
The first image is converted as expected, the second fails with "VipsForeignLoad: images do not match between header and load" and no output file is created.

Environment

  • OS: Debian 12
  • Vips: Current master built from source (5c1848e)

Additional context
I've uploaded two example images from a Samsung NX300 in SRW format. I've also reproduced this with RAW photos from another device with a different format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions