Fixed a new error introduced when scrunching colour images down to bi-level
This commit is contained in:
parent
88b3b54ef4
commit
df4d264a6e
|
@ -1750,7 +1750,6 @@ static int build_dcs(t30_state_t *s)
|
|||
/* Deal with the image length */
|
||||
/* If the other end supports unlimited length, then use that. Otherwise, if the other end supports
|
||||
B4 use that, as its longer than the default A4 length. */
|
||||
printf("Size1 0x%x\n", s->mutual_image_sizes);
|
||||
if ((s->mutual_image_sizes & T4_SUPPORT_LENGTH_UNLIMITED))
|
||||
set_ctrl_bit(s->dcs_frame, T30_DCS_BIT_UNLIMITED_LENGTH);
|
||||
else if ((s->mutual_image_sizes & T4_SUPPORT_LENGTH_B4))
|
||||
|
|
|
@ -840,6 +840,7 @@ static int read_tiff_image(t4_tx_state_t *s)
|
|||
s->image_length = image_translate_get_output_length(translator);
|
||||
s->metadata.x_resolution = T4_X_RESOLUTION_R8;
|
||||
s->metadata.y_resolution = T4_Y_RESOLUTION_FINE;
|
||||
s->metadata.resolution_code = T4_RESOLUTION_R8_FINE;
|
||||
s->tiff.image_size = (s->image_width*s->image_length + 7)/8;
|
||||
if (s->tiff.image_size >= s->tiff.image_buffer_size)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue