diff options
author | corvid <corvid@lavabit.com> | 2009-11-04 16:59:54 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-11-04 16:59:54 +0000 |
commit | e1a7010ec491edcf30a790cb54f4448f36dcbf83 (patch) | |
tree | f79fe3b11cc5400b412e5bd2b17766baf8298397 /src/jpeg.c | |
parent | 8f06733c8a70ad1ed61dc2dce59f776c0ab6a9cc (diff) |
CMYK JPEGs, at least Adobe ones for now
Diffstat (limited to 'src/jpeg.c')
-rw-r--r-- | src/jpeg.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -273,8 +273,12 @@ static void Jpeg_write(DilloJpeg *jpeg, void *Buf, uint_t BufSize) } else if (jpeg->cinfo.num_components == 3) { type = DILLO_IMG_TYPE_RGB; } else { - _MSG("jpeg: can't handle %d component images\n", - jpeg->cinfo.num_components); + MSG("4-component JPEG!\n"); + if (jpeg->cinfo.jpeg_color_space == JCS_YCCK) + MSG("YCCK. Are the colors wrong?\n"); + if (!jpeg->cinfo.saw_Adobe_marker) + MSG("No adobe marker! Is the image shown in reverse video?\n"); + type = DILLO_IMG_TYPE_CMYK_INV; } /* * If a multiple-scan image is not completely in cache, |