I am using imagemagick 32 bit Version 7.0.1-3 on Windows 7. I am generating multiple reports in txt and then converting them to jpg using imagemagick. It is generating the image fine but the spacing between text is not aligning in JPG as it is in txt. Here below is the example.
Name Accessed Modified Lines
FIL IMAGE1 19-MAY-2016 19-MAY-2016 14
Please paste above in notepad file named anlist.txt and align the data such as Name and IMAGE1 start from same position. Accessed and 19-MAY-2016 starts from same position. Modified and 19-MAY-2016 starts from same position and for Lines 14 comes at "es" of Lines. Now when I use below command on imagemagick, I expect to see the exact same formatting where data aligns properly on jpg but it doesn't. The data doesn't align properly. There are NO TABS but only spaces.
Code: Select all
convert -quiet -font CourierNew anlist.txt -blur 0x0.7 -resample 72 -unsharp 0x0.7 -trim +repage -bordercolor white -border 3 anlist.jpg