Text shift at different densities
Posted: 2012-01-18T20:02:59-07:00
Hello all,
We are encountering unexpected behavior when changing the density for text generation:
In the first example above the row of "I"s is shorter than the row of "O"''s, while in the second example "O"s are shorter. (If you can't see this issue please play with different density values).
As far as I understand changing density from 100 to 200 should make everything exactly 2 times bigger, but it's not the case for text. My workaround so far has been to generate everything at a certain density (like 300) and then resample to desired density, but that makes things extremely slow when working with large font sizes. So I thought maybe ImageMagick developers can solve the root issue described above.
I would appreciate your help in advance.
Thanks,
Arash
We are encountering unexpected behavior when changing the density for text generation:
Code: Select all
convert -pointsize 24 -density 100 -size 500x200 caption:"IIIIIIIIIIIIIIIIIIIIIIIII\r\nOOOOOOOOO" test1.png
Code: Select all
convert -pointsize 24 -density 200 -size 500x200 caption:"IIIIIIIIIIIIIIIIIIIIIIIII\r\nOOOOOOOOO" test2.png
As far as I understand changing density from 100 to 200 should make everything exactly 2 times bigger, but it's not the case for text. My workaround so far has been to generate everything at a certain density (like 300) and then resample to desired density, but that makes things extremely slow when working with large font sizes. So I thought maybe ImageMagick developers can solve the root issue described above.
I would appreciate your help in advance.
Thanks,
Arash