Login   Register  
PHP Classes
elePHPant
Icontem

Deskew does not work

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      GD2 Imaging  >  All threads  >  Deskew does not work  >  (Un) Subscribe thread alerts  
Subject:Deskew does not work
Summary:Tried to run deskew on muliple servers without success
Messages:4
Author:Caroline Gruber
Date:2012-06-07 09:26:19
Update:2012-06-18 15:13:46
 

  1. Deskew does not work   Reply   Report abuse  
Picture of Caroline Gruber
Caroline Gruber
2012-06-07 09:26:19
Artur,

First of all, thanks for this nice class.
However, the deskew method never worked for me. I've tried to run the examples/index.php, but it never displayed the resulting image for the deskew method.

I've tried this on multiple servers:
PHP 5.3.10, GD 2.0.34 compatible (Ubuntu 12.04 Server)
PHP 5.2.17, GD 2.0.34 compatible (SunOS 5.10)
PHP 5.3.2, GD 2.0+ (Ubuntu 10.04.4 Server)
PHP 5.2.4, GD 2.0+ (Ubuntu 8.04.4 Server)

Any idea what might cause the problem?

Thanks in advance!

  2. Re: Deskew does not work   Reply   Report abuse  
Picture of Artur Graniszewski
Artur Graniszewski
2012-06-08 09:33:38 - In reply to message 1 from Caroline Gruber
Hi,

do you have any reference image so I can test it? Or does it not work at all? Ie fatal errors, and such?

  3. Re: Deskew does not work   Reply   Report abuse  
Picture of Caroline Gruber
Caroline Gruber
2012-06-16 09:42:20 - In reply to message 2 from Artur Graniszewski
Found the problem.
In gd2imaging.php line 1271, the backgroundColor is passed as a string, however, imagerotate expects an integer value.

(BTW: I'm just using your examples/index.php)

  4. Re: Deskew does not work   Reply   Report abuse  
Picture of Artur Graniszewski
Artur Graniszewski
2012-06-18 15:13:46 - In reply to message 3 from Caroline Gruber
Thanks for the feedback.

I just fixed the issue you reported. Looks like the library grown enough to use the unit tests, or sth...;)