We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c853d26 commit a537587Copy full SHA for a537587
src/TaglibSharp/Jpeg/File.cs
@@ -561,10 +561,14 @@ void ReadAPP13Segment (ushort length)
561
}
562
data.RemoveRange (0, iptc_iim_length + lenToSkip);
563
564
- var reader = new IIM.IIMReader (data);
565
- var tag = reader.Process ();
566
- if (tag != null)
567
- ImageTag.AddTag (tag);
+ try {
+ var reader = new IIM.IIMReader (data);
+ var tag = reader.Process ();
+ if (tag != null)
568
+ ImageTag.AddTag (tag);
569
+ } catch (Exception) {
570
+ // There isn't much we handle in the IPTC format, so we just ignore any errors.
571
+ }
572
573
574
/// <summary>
0 commit comments