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