diff --git a/t2p.c b/t2p.c index 66ae7ed..2c66cf6 100644 --- a/t2p.c +++ b/t2p.c @@ -4,7 +4,7 @@ * will be compressed using ITU-T T.6 (G4) fax encoding. * * Main program - * $Id: t2p.c,v 1.16 2002/01/30 00:55:34 eric Exp $ + * $Id: t2p.c,v 1.17 2002/08/25 05:22:42 eric Exp $ * Copyright 2001 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -377,10 +377,11 @@ boolean process_page (int image, /* range 1 .. n */ goto fail; } - bitmap = resize_bitmap (bitmap, - x_resolution, - y_resolution, - input_attributes); + if (input_attributes.has_page_size) + bitmap = resize_bitmap (bitmap, + x_resolution, + y_resolution, + input_attributes); rotate_bitmap (bitmap, input_attributes); diff --git a/tumble.c b/tumble.c index f642bd8..4ad6a92 100644 --- a/tumble.c +++ b/tumble.c @@ -4,7 +4,7 @@ * will be compressed using ITU-T T.6 (G4) fax encoding. * * Main program - * $Id: tumble.c,v 1.16 2002/01/30 00:55:34 eric Exp $ + * $Id: tumble.c,v 1.17 2002/08/25 05:22:42 eric Exp $ * Copyright 2001 Eric Smith * * This program is free software; you can redistribute it and/or modify @@ -377,10 +377,11 @@ boolean process_page (int image, /* range 1 .. n */ goto fail; } - bitmap = resize_bitmap (bitmap, - x_resolution, - y_resolution, - input_attributes); + if (input_attributes.has_page_size) + bitmap = resize_bitmap (bitmap, + x_resolution, + y_resolution, + input_attributes); rotate_bitmap (bitmap, input_attributes);