lucid-fox / social-magick

An Open Graph Image generator plugin for Joomla 3 and 4
GNU General Public License v3.0
15 stars 1 forks source link

Add 'best-fit' text size option for Imagick integration #11

Closed crystalenka closed 3 years ago

crystalenka commented 3 years ago

IMagick's caption function can best fit the size of the text if no point size is assigned. For example, if a short string is provided, the font will be bigger; if a long string is provided, the font will be smaller.

This is good for people like me who have long article names.

nikosdion commented 3 years ago

Addressed like this. Setting a negative font size will use font auto-sizing for Imagick and the exact point size (converted to positive) for GD.