This is for image input files which have no PPI resolution in their metadata and are printed without scaling ("print-scaling=none"). In this case the default resolution is used. Formerly it was set to 128 PPI but we change it to 200 PPI now as many shipping labels come as image files with 200 PPI and so it is easier to print them in their original size. For photos this default value is not important though, as photos are usually printed with scaling ("print-scaling=fill" or "print-scaling=fit").
Pull request #446
{
DEBUG_printf(("DEBUG: Bad BMP resolution %dx%d PPI.\n",
img->xppi, img->yppi));
- img->xppi = img->yppi = 128;
+ img->xppi = img->yppi = 200;
}
/*
{
DEBUG_printf(("DEBUG: Bad JPEG image resolution %dx%d PPI.\n",
img->xppi, img->yppi));
- img->xppi = img->yppi = 128;
+ img->xppi = img->yppi = 200;
}
}
*/
img->colorspace = (primary == CUPS_IMAGE_RGB_CMYK) ? CUPS_IMAGE_RGB : primary;
- img->xppi = 128;
- img->yppi = 128;
+ img->xppi = 200;
+ img->yppi = 200;
if (rotation)
{
DEBUG_printf(("DEBUG: PNG image has invalid resolution %dx%d PPI\n",
img->xppi, img->yppi));
- img->xppi = img->yppi = 128;
+ img->xppi = img->yppi = 200;
}
}
}
else
{
- img->xppi = 128;
- img->yppi = 128;
+ img->xppi = 200;
+ img->yppi = 200;
}
if (img->xppi == 0 || img->yppi == 0)
img->cachefile = -1;
img->max_ics = CUPS_TILE_MINIMUM;
- img->xppi = 128;
- img->yppi = 128;
+ img->xppi = 200;
+ img->yppi = 200;
if (!memcmp(header, "GIF87a", 6) || !memcmp(header, "GIF89a", 6))
status = _cupsImageReadGIF(img, fp, primary, secondary, saturation, hue,