Skip to content

Commit

Permalink
Fix monochrome ICC profile error message in apps (#2673)
Browse files Browse the repository at this point in the history
Add CHANGELOG entry.
  • Loading branch information
y-guyon authored Mar 7, 2025
1 parent 5f410ec commit 6079792
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The changes are relative to the previous release, unless the baseline is specifi

### Added since 1.2.0

* Add support for outputting all frames of an image sequence in `avifdec`.
* Add support for outputting all frames of an image sequence in `avifdec`.
`avifdec --index all sequence.avif out.png` creates files named
`out-xxxxxxxxxx.png` where xxxxxxxxxx are the zero-padded frame indices.

Expand All @@ -19,6 +19,8 @@ The changes are relative to the previous release, unless the baseline is specifi
* Fix local libargparse dependency patch step on macOS 10.15 and earlier.
* Patch local libyuv dependency for compatibility with gcc 10.
* Use stricter C99 syntax to avoid related compilation issues.
* Reject the conversion in avifenc of non-monochrome input to monochrome when an
ICC profile is present and not explicitly discarded.

## [1.2.0] - 2025-02-25

Expand Down
2 changes: 1 addition & 1 deletion apps/shared/avifjpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ static avifBool avifJPEGReadInternal(FILE * f,
iccData = iccDataTmp;
if (requestedFormat == AVIF_PIXEL_FORMAT_YUV400) {
fprintf(stderr,
"The image contains an RGB ICC profile which is incompatible with the requested output "
"The image contains a color ICC profile which is incompatible with the requested output "
"format YUV400 (grayscale). Pass --ignore-icc to discard the ICC profile.\n");
goto cleanup;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/shared/avifpng.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ avifBool avifPNGRead(const char * inputFilename,
if (rawColorType != PNG_COLOR_TYPE_GRAY && rawColorType != PNG_COLOR_TYPE_GRAY_ALPHA &&
avif->yuvFormat == AVIF_PIXEL_FORMAT_YUV400) {
fprintf(stderr,
"The image contains an RGB ICC profile which is incompatible with the requested output "
"The image contains a color ICC profile which is incompatible with the requested output "
"format YUV400 (grayscale). Pass --ignore-icc to discard the ICC profile.\n");
goto cleanup;
}
Expand Down

0 comments on commit 6079792

Please sign in to comment.