Skip to content

Instantly share code, notes, and snippets.

@y2kfresh
y2kfresh / autofit_text_to_image.php
Created March 8, 2018 07:36 — forked from clifgriffin/autofit_text_to_image.php
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
*