1.1 --- a/tumble_jpeg.c Thu Mar 20 07:52:25 2003 +0000 1.2 +++ b/tumble_jpeg.c Thu Mar 20 07:53:09 2003 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 /* 1.5 * tumble: build a PDF file from image files 1.6 * 1.7 - * $Id: tumble_jpeg.c,v 1.1 2003/03/19 22:54:08 eric Exp $ 1.8 + * $Id: tumble_jpeg.c,v 1.2 2003/03/19 23:53:09 eric Exp $ 1.9 * Copyright 2003 Eric Smith <eric@brouhaha.com> 1.10 * 1.11 * This program is free software; you can redistribute it and/or modify 1.12 @@ -87,6 +87,16 @@ 1.13 { 1.14 double unit; 1.15 1.16 +#ifdef DEBUG_JPEG 1.17 + printf ("color space: %d\n", cinfo.jpeg_color_space); 1.18 + printf ("components: %d\n", cinfo.num_components); 1.19 + printf ("density unit: %d\n", cinfo.density_unit); 1.20 + printf ("x density: %d\n", cinfo.X_density); 1.21 + printf ("y density: %d\n", cinfo.Y_density); 1.22 + printf ("width: %d\n", cinfo.image_width); 1.23 + printf ("height: %d\n", cinfo.image_height); 1.24 +#endif 1.25 + 1.26 switch (cinfo.jpeg_color_space) 1.27 { 1.28 case JCS_GRAYSCALE: 1.29 @@ -154,6 +164,9 @@ 1.30 0, 0, /* x, y */ 1.31 image_info->width_points, 1.32 image_info->height_points, 1.33 + image_info->color, 1.34 + image_info->width_samples, 1.35 + image_info->height_samples, 1.36 jpeg_f); 1.37 1.38 return (page);