diff --git a/src/TaglibSharp/Jpeg/File.cs b/src/TaglibSharp/Jpeg/File.cs index 15531cba7..6c0e1ee29 100644 --- a/src/TaglibSharp/Jpeg/File.cs +++ b/src/TaglibSharp/Jpeg/File.cs @@ -561,10 +561,14 @@ void ReadAPP13Segment (ushort length) } data.RemoveRange (0, iptc_iim_length + lenToSkip); - var reader = new IIM.IIMReader (data); - var tag = reader.Process (); - if (tag != null) - ImageTag.AddTag (tag); + try { + var reader = new IIM.IIMReader (data); + var tag = reader.Process (); + if (tag != null) + ImageTag.AddTag (tag); + } catch (Exception) { + // There isn't much we handle in the IPTC format, so we just ignore any errors. + } } ///