After thinking I was merely going crazy I’ve found out why php doesn’t seem to support all image functions. Ubuntu’s php5-gd package uses an older version of gd. So uninstall php, and build from source
More on this issue: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/74647








