black sensei
black sensei

Reputation: 6678

how to preserve image quality after adding it to a jasperreport(created in iReport)?

i've been struggling since 72hours with an image issue.anytime i add an image to ireport 4.6 the image is always blur and that blur image appears on the pdf generated by the jasperreport after running it. after googling i was pointed to the dpi of the image. i've tried increasing the dpi of the image but it seems the same.i've tried save a svg version of the image from an online converter and went through the trouble of adding a .svg version of the image.

am wondering if there is trick to it? can anyone shed some light? looking at my timeline am officially one day late on this.

thanks for reading this and helping out

Upvotes: 5

Views: 3591

Answers (2)

lucy
lucy

Reputation: 1

JRAbstractSvgRenderer hope this class may help you.

You can extends this class. and use it as parameter input.

Upvotes: 0

mdahlman
mdahlman

Reputation: 9400

Add this line to jasperreports.properties. I find it makes much sharper reports.

net.sf.jasperreports.image.dpi=300

Upvotes: 1

Related Questions