Solved

Reducing the size of a print job

Posted on 2008-10-13
5
536 Views
Last Modified: 2012-05-05
Hello

I'm writing a .NET application and need to print images.  The thing is that when looking at the queue, the print jobs are too big 20MB, 30MB etc...  

How can I reduce it?

Thanks

0
Comment
Question by:afikim
  • 3
  • 2
5 Comments
 
LVL 38

Expert Comment

by:hdhondt
ID: 22706675
Not knowing anything else about what your prints entail, the main reason why print jobs get very big is embedded images that are too large.

An image should be around 200 dpi *as printed*. Hence, if you have a 5 x 5 cm (2" x 2") image on the page, it should be around 400 x 400 pixels in size. In many cases people think that a 1200 dpi printer requires 1200 dpi images for best results. That is completely wrong. Some applications also enlarge the image to printer resolution - again wrong. Publisher is one app that can do that, but you can tell it not to. At 1200 dpi, an image will be 36 times larger than at 200 dpi. Add a few like that, and your spool file will balloon.

Another thing that can affect the spool file size is the driver used, and the printer resolution specified in the driver. For graphics, a PostScript driver will usually produce smaller file sizes. A PCL driver will enlarge the image to suit the printer resolution selected in the driver; with PS the only thing that will change is a command that tells the printer which resolution to use, the image data will not change.

If neither of these applies, please provide more data about your prints.
0
 

Author Comment

by:afikim
ID: 22709082
Hi hdhondt

I use a 300X300 resolution.  
The attached snippet is a part of my code writing to the printing component.

Thanks

Eli
If prdPrintDocument.DefaultPageSettings.Landscape Then
            e.Graphics.DrawImage(tiffImage, 0, 0, prdPrintDocument.DefaultPageSettings.PrintableArea.Height, prdPrintDocument.DefaultPageSettings.PrintableArea.Width)
        Else
            e.Graphics.DrawImage(tiffImage, 0, 0, prdPrintDocument.DefaultPageSettings.PrintableArea.Width, prdPrintDocument.DefaultPageSettings.PrintableArea.Height)
        End If

Open in new window

0
 
LVL 38

Accepted Solution

by:
hdhondt earned 125 total points
ID: 22709698
Unfortunately, just the resolution is not the full answer. If you have an 8" x 10" 300 dpi image and print it at 4" x 5", you will still be sending 4 times more data to the printer than if you shrink it down to 4 x 5, still at 300dpi.

If your images are full page, then 20MB+ is about right for 300 dpi colour, unless you have a printer that understands data compressions (e.g. jpeg) *and* a driver that supports it. Most drivers will send the image uncompressed. In that case, try reducing the image size to only 200 dpi. It will halve the print size, and you probably will not notice any deterioration in quality.
0
 

Author Comment

by:afikim
ID: 22715885
hi hdhondt:

Thanks for ythe info.

I will check this subject and revert to you.

Thanks

Eli
0
 

Author Closing Comment

by:afikim
ID: 31406262
Thanks
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question