changing the print quality of images?

You need to be logged in to post messages in the forums. New users may register here.

STEVO +

Member since:
09 January 2008

Posts: 23

Tuesday 14 July 2009 4:23:59 am

first off, fantastic extension. a total winner!

secondly, as far as i can tell the renderer embed images at 96dpi according to the height/width of the image or img attributes.

i'd like to embed higher quality images but keeping the same dimensions. i presume this would involve some hacking of the java source, which isn't my thing at all.

any ideas?

many thanks for your indispensable extension!
Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Tuesday 14 July 2009 6:52:29 am

Hi Stevo,

First thanks for feedback!

I'm not a specialist, so the following information are a rapid snapshot of my knowledge :) may be i'm wrong.

As you have noticed, the default resolution for rendering images is 96 DPI.
You can embed a higher resolution image scale it by eZ Pulish to fit your need :

To put a picture with 300dpi for example you will have to use a scaling of 96/300=32%

IText documentation explains this well:
" For instance: if you have created a 5X5 inch image with 300 dpi, the resultant image is 1500X1500 pixels (5X300 = 1500). When you place this image in the pdf with a scaling of 32% (96/300 = 0.32), the image in the pdf will be 5X5 inch with 1500X1500 pixel at 300 dpi. The image will always be 1500X1500 pixel whatever the size."

































http://www.amiralweb.com Certified eZPublish Expert

Up

STEVO +

Member since:
09 January 2008

Posts: 23

Wednesday 15 July 2009 3:18:59 am

hi Karnichi,

thanks for the reply, however, as far as i can tell (and i might be being stupid) the image that is embedded in the pdf is always at 96dpi.

ezpublish will generate the image alias retaining it at 300dpi but the java thing always seems to embed the images with 96dpi. the quality in the pdf never changes + the pdf filesize remains the same.

my only (hacky) idea for now is to generate the pdfs at A3 which should then be scaled down to A4 by adobe reader for most people's printers. this should let me put bigger image dimensions + that data should be preserved when printing at higher dpis.
Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Wednesday 15 July 2009 4:03:02 am

Ok,

So what happens when your keep the original image size, but set the scaled values of height and weight at img tag level (on the xhtml) ?

I'll try to make some tests with different image resolutions, and check different configuration parameters to see how to fix this issue

thanks

http://www.amiralweb.com Certified eZPublish Expert

Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Wednesday 15 July 2009 9:27:15 am

Hi

I made some tests with different images resolutions : you can check the resulting pdfs here :

300 dpi images
http://smoox.free.fr/paradoxpdf/samples/hq/test_hq.pdf
http://smoox.free.fr/paradoxpdf/samples/hq/test_hq_1.pdf


70dpi compared to 300dpi (zoom to see the difference):

http://smoox.free.fr/paradoxpdf/samples/hq/different_dpi.pdf


It works well, so for having high quality images in pdf just insert high resolution images without scaling and declare the desired (proportional ) size in the img tag.

You will touch the real difference between the different image dpi when you print the documents.

My first response was wrong :)

http://www.amiralweb.com Certified eZPublish Expert

Up

STEVO +

Member since:
09 January 2008

Posts: 23

Thursday 16 July 2009 10:18:04 am

hmm weird, i tried that + thought i was sure it didn't make a difference, but you're right!

i think you're my new favorite ez type!

thanks loads for your time, you need a paypal donate button
Up

Karnichi Mohamed

Member since:
11 February 2008

Posts: 72

Thursday 16 July 2009 10:23:51 am

Thanks a lot Stevo, a small review from you here http://projects.ez.no/paradoxpdf/reviews will do the job :)

http://www.amiralweb.com Certified eZPublish Expert

Up

You need to be logged in to post messages in the forums. New users may register here.