Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 707
black sensei Avatar asked Nov 13 '22 02:11

black sensei


1 Answers

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

net.sf.jasperreports.image.dpi=300
like image 166
mdahlman Avatar answered Nov 16 '22 02:11

mdahlman