Showing posts from July, 2015

Jasper Reports PDF image quality (blurry and poor) solution

Recently I had to create a PDF Jasper Report that contained a lot of small images (I needed to represent checkboxes); however upon generating the PDF the image quality was really awful since for some reason they were been scaled (even though I had configured the report to show them in real size and the image was the same dimensions as its placeholder) I spent quite some time searching for a solutions, one popular one was to add the following parameter either to the report as a property or in the in the CLASSPATH to be picked up by the engine but to no avail.In the end after searching and reading different threads I found 2 solutions that work :1. Convert your PNG to SVGYou can convert your PNGs to SVGs either by using something like Adobe Ilustrator or something similar or you can also head up to this website : PNG to SVG converter and follow the instructionsYou can then place your SVGs in the appropriate folder in your application where you can pass the pat…

Creating custom font icons

FontIcons have become really popular in the past few years and they have a lot of advantages such as : They are vector based so no loss in quality when re-sizingThe ability to easily change their size/color/shade ; without involving an image editor (they are just fonts!) The ability to combine font-icons or add text-decorations, gradients, textures (depending on browser support) When creating FontIcons you have a few options, here I will discuss how to create them from PNG files 1. Converting your png to svg Sorry I lied you cannot directly create a FontIcon from a PNG; you need to convert it first to a vectorial format SVGOnce again you have various options when it comes to converting a PNG; if you are lucky you might have an Adobe Illustrator licence where you can perform the conversion (or maybe another program I'm not aware of), otherwise you will have to use another approach, in my case I use PNG to SVG converter.The site is pretty straightforward, just upload your PNG store …