8000 Reading UCS-2 encoded UserComment tag · Issue #101 · libexif/libexif · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Reading UCS-2 encoded UserComment tag #101
Open
@akash-akya

Description

@akash-akya

Hi, it looks like libexif does not support reading UCS-2 encoded UserComment tag (?).
I know that the spec is unclear about this, I just wanted to know what is the current
stance on this. Some of the tools does recognize this and decodes the tags correctly.

229839123-b8b7228d-c1e0-4843-80fd-764a2832abf1

For example, metadata2go reads this as:

Character concept design, hd Steps: 22, Sampler: DPM++ 2M Karras, CFG scale: 7, Seed: 4105013426, Face restoration: > CodeFormer, Size: 400x600, Model hash: e6415c4892, Model: realisticVisionV20_v20

I see this comment about decoding mentioned here:

/* FIXME: use iconv to convert into the locale encoding.
* EXIF 2.2 implies (but does not say) that this encoding is
* UCS-2.

And cmiiw, it seems we do have a helper function to decode the string?

/*! This function converts rather UCS-2LE than UTF-16 to UTF-8.
* It should really be replaced by iconv().
*/
void
exif_convert_utf16_to_utf8 (char *out, const unsigned char *in, int maxlen)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0