Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dragon66 authored Aug 11, 2024
1 parent 1678dfa commit 9529603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/icafe4j/image/png/PNGTweaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ else if (entry.getKey().equals("Raw profile type iptc")) {
int length = Integer.parseInt(iptc[1].trim());
StringBuffer sb = new StringBuffer();
for(int i = 2; i < iptc.length; i++) {
sb.appen(iptc[i]);
sb.append(iptc[i]);
}
byte[] data = StringUtils.hexStringToByteArray(sb.toString());
metadataMap.put(MetadataType.PHOTOSHOP_IRB, new IRB(data));
Expand All @@ -526,7 +526,7 @@ else if (entry.getKey().equals("Raw profile type iptc")) {
int length = Integer.parseInt(exif[1].trim());
StringBuffer sb = new StringBuffer();
for(int i = 2; i < exif.length; i++) {
sb.appen(exif[i]);
sb.append(exif[i]);
}
// Need to strip out exif header before passing to JpegExif constructor
byte[] data = StringUtils.hexStringToByteArray(sb.toString().substring(12));
Expand Down

0 comments on commit 9529603

Please sign in to comment.