Skip to content

Commit

Permalink
identify z component of chromaticity
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 15, 2023
1 parent 3d18ead commit ba3c9fb
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions magick/identify.c
Original file line number Diff line number Diff line change
Expand Up @@ -1123,15 +1123,18 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file,
Display image chromaticity.
*/
(void) FormatLocaleFile(file," Chromaticity:\n");
(void) FormatLocaleFile(file," red primary: (%g,%g)\n",
image->chromaticity.red_primary.x,image->chromaticity.red_primary.y);
(void) FormatLocaleFile(file," green primary: (%g,%g)\n",
image->chromaticity.green_primary.x,
image->chromaticity.green_primary.y);
(void) FormatLocaleFile(file," blue primary: (%g,%g)\n",
image->chromaticity.blue_primary.x,image->chromaticity.blue_primary.y);
(void) FormatLocaleFile(file," white point: (%g,%g)\n",
image->chromaticity.white_point.x,image->chromaticity.white_point.y);
(void) FormatLocaleFile(file," red primary: (%g,%g,%g)\n",
image->chromaticity.red_primary.x,image->chromaticity.red_primary.y,
image->chromaticity.red_primary.z);
(void) FormatLocaleFile(file," green primary: (%g,%g,%g)\n",
image->chromaticity.green_primary.x,image->chromaticity.green_primary.y,
image->chromaticity.green_primary.z);
(void) FormatLocaleFile(file," blue primary: (%g,%g,%g)\n",
image->chromaticity.blue_primary.x,image->chromaticity.blue_primary.y,
image->chromaticity.blue_primary.z);
(void) FormatLocaleFile(file," white point: (%g,%g,%g)\n",
image->chromaticity.white_point.x,image->chromaticity.white_point.y,
image->chromaticity.white_point.z);
}
if ((image->extract_info.width*image->extract_info.height) != 0)
(void) FormatLocaleFile(file," Tile geometry: %.20gx%.20g%+.20g%+.20g\n",
Expand Down

0 comments on commit ba3c9fb

Please sign in to comment.