Skip to content

not able to parse .Meta.XMP correctlyΒ #15324

Closed
bep/imagemeta
#72

Description

@zabatonni

What version of Hugo are you using (hugo version)?

hugo v0.166.0-78400b4de8adc99273d3e674ed6c4d14c3bdf669 windows/amd64 BuildDate=2026-09-09T14:45:02Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

yes

XMP in images can be written using different xml formats and not all of them are correctly parsed using .Meta.XMP.
Hugo can't read DigitalSourceType from attached file, but it is present in the file itself.

Example image:
Image

Here is exiftool dump:

ExifTool Version Number         : 13.55
File Name                       : test-1.jpg
Directory                       : .
File Size                       : 4.1 kB
File Modification Date/Time     : 2026:09:10 15:45:01+02:00
File Access Date/Time           : 2026:09:10 15:45:02+02:00
File Inode Change Date/Time     : 2026:09:10 15:45:01+02:00
File Permissions                : -rwx------
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.01
Resolution Unit                 : None
X Resolution                    : 1
Y Resolution                    : 1
XMP Toolkit                     : Image::ExifTool 13.55
Digital Source Type             : http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia
Image Width                     : 276
Image Height                    : 38
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Image Size                      : 276x38
Megapixels                      : 0.010

Activity

  1. self-assigned this
    on Sep 10, 2026
  2. added this to the v0.167.0 milestone on Sep 10, 2026
  3. added a commit that references this issue on Sep 10, 2026
    286bbfb
  4. added a commit that references this issue on Sep 16, 2026
    ec57bb7
  5. github-actions commented on Oct 2, 2026

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions