Skip to content

JXR file is corrupted after writing metadata to image #3162

Open
@fuzesmarcell

Description

@fuzesmarcell

Describe the bug

When I'm trying to add metadata to a .jxr file the image data content of the file is cleared and the file itself seems to be corrupted or no image data is present.

To Reproduce

Simply setting a metadata on the image clearly corrupts the file. The file after the exiv2 operation is 144 bytes.

>for %F in ("1718924939_EKatK.jxr") do @echo %~zF
11373975
>exiv2 -M"set Exif.Image.Make Nikon" 1718924939_EKatK.jxr
>for %F in ("1718924939_EKatK.jxr") do @echo %~zF
144

Expected behavior

I would expect the file to be intact and not get corrupted when adding a metadata field. This works with other image types.

Desktop (please complete the following information):

  • OS and version: Windows 10
  • Exiv2 version and source: 0.28.3 from exiv2.org
  • Compiler and version: 2019msvc64

Additional context

1718924939_EKatK.zip

The reference image is taken from: https://sample-files-online.com/samples/jxr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions