freebsd-ports/graphics/quickpics/files/patch-ac
Pete Fritchman 9ee64133aa - add patch to handle color space properly for grayscale images
PR:		21021
Submitted by:	Park JongHwan <jhp@cocoja.holywar.net>
Approved by:	maintainer

- update author's email in pkg-descr

Submitted by:	maintainer
2001-11-06 19:54:58 +00:00

19 lines
595 B
Text

*** image.c.orig Tue Sep 25 09:25:40 2001
--- image.c Tue Sep 25 09:26:26 2001
***************
*** 205,211 ****
cinfo.image_width = output_width;
cinfo.image_height = output_height;
cinfo.input_components = out_color_components;
! cinfo.in_color_space = JCS_RGB;
/* compression parameters */
jpeg_set_defaults(&cinfo);
--- 205,211 ----
cinfo.image_width = output_width;
cinfo.image_height = output_height;
cinfo.input_components = out_color_components;
! cinfo.in_color_space = dinfo.out_color_space;
/* compression parameters */
jpeg_set_defaults(&cinfo);