Rafael de Camargo - 2011-10-20 19:15:58
Hi.
I'm using your class to handle the file uploads in my school work, and there's a bug...
when cutting images using vertical middle, the cut doesnt 'happen' in the middle, due the line 325 of your code...
I believe
$this->crop($this->info['width'] * $w_ratio, $dest_w, $dest_h, 0, $this->getY($v_align, $w_ratio, $dest_w));
Might be
$this->crop($this->info['width'] * $w_ratio, $dest_w, $dest_h, 0, $this->getY($v_align, $w_ratio, $dest_h));
I changed this in the class and the bug fixed.
best regards,
Rafael de Camargo.