File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public sealed class IptcReader : IJpegSegmentMetadataReader
35
35
public static final int POST_DATA_RECORD = 9;
36
36
*/
37
37
38
- private const byte IptcMarkerByte = 0x1c ;
38
+ internal const byte IptcMarkerByte = 0x1c ;
39
39
40
40
ICollection < JpegSegmentType > IJpegSegmentMetadataReader . SegmentTypes { get ; } = new [ ] { JpegSegmentType . AppD } ;
41
41
Original file line number Diff line number Diff line change @@ -414,13 +414,14 @@ IEnumerable<Directory> ProcessTextChunk(string keyword, byte[] textBytes)
414
414
// this is unfortunate, but the "IPTC" profile may be stored as either
415
415
// IPTC IIM or a Photoshop IRB resource, so we must test for this.
416
416
// Check if the first byte matches IptcReader.IptcMarkerByte (0x1c)
417
- if ( byteCount > 0 && textBytes [ 0 ] == 0x1c )
417
+ if ( byteCount > 0 && textBytes [ 0 ] == IptcReader . IptcMarkerByte )
418
+ {
418
419
yield return new IptcReader ( ) . Extract ( new SequentialByteArrayReader ( textBytes ) , byteCount ) ;
420
+ }
419
421
else
420
422
{
421
423
foreach ( var psDirectory in new Photoshop . PhotoshopReader ( ) . Extract ( new SequentialByteArrayReader ( textBytes ) , byteCount ) )
422
424
yield return psDirectory ;
423
-
424
425
}
425
426
}
426
427
else
You can’t perform that action at this time.
0 commit comments