numist/this-might-be-offensive — Issue #12: tmbo blows up when uploading pngs
Author: numist
Created: 2011-10-13 21:34:19+00:00
State: open

it's been broken for a while, and it sucks.

I suspect that the imagemagick command in this code block is failing (in /offensive/assets/upload.inc)

```
// image types get thumbnails
if(upload_type($postdata) == "image" || upload_type($postdata) == "avatar") {
ensureDirExists("$path/thumbs");

// generate the thumbnail
$cmd = "convert -define jpeg:size=800x800 $tmpdir/".$postdata['tmpname']."[0] -thumbnail 133x100^ -gravity center -extent 133x100 $tmpdir/th".$postdata['tmpname'];

$err = shell_exec($cmd);
if(strlen($err) > 0) trigger_error("ImageMagick failed: $err", E_USER_ERROR);
```