Skip to content

Instantly share code, notes, and snippets.

@clifgriffin
clifgriffin / autofit_text_to_image.php
Last active May 4, 2022 18:04
Auto fit text to image using PHP / Imagick
<?php
/**
* Auto Fit Text To Image
*
* Write text to image using a target width, height, and starting font size.
*
* @author Clif Griffin
* @url http://cgd.io/2014/auto-fit-text-to-an-image-with-php-and-wordpress
*