To the right you can see the original PNG (rendered with ristretto) which has white background in the left half and transparent background in the right half. To the left you can see the jpg produced by Imagemagick using
Code: Select all
convert test-lines.png -quality 100 test-lines.jpg
(Please click on the image to view it in 100%)
As you can see there is no antialiasing at all plus the bold 45° ascending diagonal on the right isn't even smooth anymore, but has a jagged edge!
All of this can be avoided by filling the background with white, e.g.:
Code: Select all
convert test-lines.png -background white -alpha remove -quality 100 test-lines.jpg
Zoom on jagged edges: