[cups.general] Resizing a JPEG image for printing (using CUPS Library)

Michael Sweet msweet at apple.com
Tue Sep 25 07:54:35 PDT 2012


Tom,

I've never seen a HP printer scale and print an image on multiple pages all on its own.  What exactly are you seeing?  The image, or garbage printing on multiple pages?

If you are feeding the JPEG directly to the printer via IPP, then it *should* normally print it from the photo tray and scale to fill (for HP inkjet printers) or centered/scaled on the default/specified media (for HP laser printers).  Just be sure to specify a document-format value of "image/jpeg" so the printer knows what you are sending it - not all HP printers support auto-sensing via IPP.

The "media" and "media-col" Job Template attributes are used to specify the size/media to use for the print job.  The "ipp-attribute-fidelity" operation attribute can be used to force scaling to that size (although I think most HP inkjet printers ignore this when printing from the photo tray and just use the detected size...)


On 2012-09-25, at 10:22 AM, Tom Morrison <tom.morrison at smith-nephew.com> wrote:

> Hi
> 
> I have successfully cross-compiled the CUPS 1.4.5 library (libcups.a) to the ARM 9 platform and I have a (720x480) jpeg image that Further, I have successfully) printed to my local wireless HP printer.
> 
> The problem is that the physical image that the printer 'thinks' it is is HUGE (multi-pages) - I can't do this to my user. In fact, my ideal is to print this at different sizes (based upon user input).
> 
> Are there any attributes that I could add to the IPP request in order to have the printer 'resize' this image could be printed on a single page?
> 
> Any suggestions for a direction ot investigate?
> 
> Tom
> _______________________________________________
> cups mailing list
> cups at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups

__________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair





More information about the cups mailing list