Skip to content

Cannot set tags for .jpg files #342

Open
@SimonKravis

Description

@SimonKravis

Using TagLibSharp 2.3.0 from C# on Windows 11 to set Title metadata for JPG file with code below does not add any metadata
TagLib.File tagFile = TagLib.File.Create(sFile); tagFile.Tag.Title = sTag; tagFile.Save();

File metadata from ExifTool is shown below. A zero size file SetFromImageFails.txt is created in the folder containing the JPG.

C:\Users\simon\Pictures\Test TagLibSharp>exiftool 5a02fc06-23d2-11e8-a6a3-ec086b02610b.jpg
ExifTool Version Number : 12.40
File Name : 5a02fc06-23d2-11e8-a6a3-ec086b02610b.jpg
Directory : .
File Size : 160 KiB
File Modification Date/Time : 2011:07:15 01:17:00+10:00
File Access Date/Time : 2023:10:09 09:19:25+11:00
File Creation Date/Time : 2023:09:05 18:50:46+10:00
File Permissions : -rw-rw-rw-
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Resolution Unit : None
X Resolution : 1
Y Resolution : 1
Image Width : 2048
Image Height : 1536
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 : 2048x1536
Megapixels : 3.1

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