PHP Classes

Report error

Recommend this page to a friend!

      Ace image resize helper  >  All threads  >  Report error  >  (Un) Subscribe thread alerts  
Subject:Report error
Summary:Reporting error on class
Author:Rafael de Camargo
Date:2011-10-20 19:15:58


  1. Report error   Reply   Report abuse  
Picture of Rafael de Camargo Rafael de Camargo - 2011-10-20 19:15:58
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.