This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How do I Resize a physical JPEG image...

Hi,

I am capturing a UYVY image, Smoothing it (De-Interlacing), and sending it to jpegenc codec. That works just fine!

Then, I've written some code to use the cups library to send that jpeg to a printer (that supports IPP). OK, that works!

Problem: The printer thinks this is a HUGE image...

I am wondering if there is a way that I can physically resize this image in a fashion that the printer thinks its the right size (I can't build CUPS into my build (both DM355 and DM365)).

Any Suggestions?

  • Don't know about cups but I think when printing you need to give the right pixels/dops per inch so that the image is scaled properly. That information can usually be embedded in JPEG file. I glanced at DM355 JPEG encoder and could not find parameters that would define physical size of an image. Maybe there is a way to override values and tell  the actual size of the image in inches. Try opening the file in an image editing software, modify the image resolution without scaling the image and save the file. Then try running it though your cups and see if it comes out right.

    I think there are conversion tools (may even come with JPEG library) that you can use to change the physical size of the picture without decoding/encoding the image.

  • Hi, Gennadiy Kiryukhin.

    I wonder whether you have worked it out?