Skip to content

Instantly share code, notes, and snippets.

@y2kfresh
y2kfresh / autofit_text_to_image.php
Created Mar 8, 2018 — forked from clifgriffin/autofit_text_to_image.php
Auto fit text to image using PHP / Imagick
View autofit_text_to_image.php
<?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
*