Not sure if this is the right category for the following.
I have ImageMagick Installed on two different centos versions Centos 5.11,Centos 6, the version of image magick is the same on both 6.7.2, for centos 5 I had to compile the source to get the same version installed.
The issue i'm getting is when converting a pdf to png and applying text on the converted png I get a different output on the centos 5.11, the png is very small and the text that was placed using -draw (text) is disfigured.
Process of what i'm doing
Code: Select all
1 ) I first convert the pdf page to png
convert -density 288 pdfdoc.pdf pdfimage.png
2)I then apply the text to the image and create a new png file
convert -pointsize ${array[1]} -fill ${array[2]} -draw "text ${array[3]},${array[4]} '${array[0]}' " -font "${array[5]}" $TMP/pdfimage.png $TMP/finalpdfimage.png
https://imgur.com/a/6Lnp0Qa
Image of text on centos 6:
https://imgur.com/a/vuNuisX
Many thanks
Tony.