Replies: 1 comment 3 replies
-
Alright, so, I ended up figuring out how to do this myself, it was pretty simple but it's sort of hacky, if someone knows of a better way to do this please let me know.
So basically there's this method |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This is my code:
Basically I'm creating images containing text, and I'm relying on ImageMagick to set the font's size based on the size of the image. It's doing a wonderful job, too good even.
In fact, sometimes the string I'm using is very short, and the image ends up ridiculously big.
Since I'd like to avoid changing the size of the image according to the string, I thought of setting a maximum font size, but I can't seem to be able to do that. Is there any way of even seeing the font size that ImageMagick is calculating when writing the image?
Beta Was this translation helpful? Give feedback.
All reactions