Skip to content

Commit

Permalink
save IPTC + ICC profiles are profiles, not properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Aug 28, 2024
1 parent b80c509 commit 25d5335
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions coders/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ static boolean ReadICCProfile(j_decompress_ptr jpeg_info)
client_info=(JPEGClientInfo *) jpeg_info->client_data;
image=client_info->image;
exception=client_info->exception;
status=SetImageProperty(image,"icc",(const char *) GetStringInfoDatum(
client_info->profiles[ICC_INDEX]),exception);
status=SetImageProfile(image,"icc",client_info->profiles[ICC_INDEX],
exception);
return(status == MagickFalse ? FALSE : TRUE);
}

Expand Down Expand Up @@ -689,8 +689,8 @@ static boolean ReadIPTCProfile(j_decompress_ptr jpeg_info)
client_info=(JPEGClientInfo *) jpeg_info->client_data;
image=client_info->image;
exception=client_info->exception;
status=SetImageProperty(image,"iptc",(const char *) GetStringInfoDatum(
client_info->profiles[IPTC_INDEX]),exception);
status=SetImageProfile(image,"iptc",client_info->profiles[IPTC_INDEX],
exception);
return(status == MagickFalse ? FALSE : TRUE);
}

Expand Down

0 comments on commit 25d5335

Please sign in to comment.