I'm working on a project that involves ImageMagick and PHP. The thing about ImageMagick is that it's bizarre and the thing about PHP is that... well, it's PHP. PHP is so very PHP. But by god, I managed to get the damn thing working in spite of how PHP works with variables in an exec statement.