kristovaher / Wave-Framework

Open Source API-centric PHP Framework
https://github.com/kristovaher/Wave-Framework
GNU Lesser General Public License v3.0
2 stars 0 forks source link

GD Library fails on Windows with Apache when using dynamic image loading #95

Open kristovaher opened 11 years ago

kristovaher commented 11 years ago

For example: nocache&400x200&nw40&se190&ne10&aa4&example.jpg

[type] => 2 [file] => C:\UniServerZ\www\engine\class.www-imager.php [line] => 69 [message] => imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error:

AND

[type] => 2 [file] => C:\UniServerZ\www\engine\class.www-imager.php [line] => 69 [message] => imagecreatefromjpeg(): 'C:/UniServerZ/www/resources/images\example.jpg' is not a valid JPEG file

FIle is definitely valid and the problem is not in the '\' character instead of '/' (tested)

jaakkytt commented 10 years ago

Unable to reproduce the error on Win7 Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 - the imagecreatefromjpeg part works fine for me.

kristovaher commented 10 years ago

This might be a system-specific or version-specific bug in that case or a problem encountered in my stack. Might be an issue on Windows 8 alone. I have to test for that.

kristovaher commented 10 years ago

Additional details from Jaak in e-mail (in Estonian):

Kas oleks mõeldav, kui sa hoiaksid mingit snapshoti oma dev branch-ist ka public repos ning märgiksid bug-i puhul ka ära, kas viga eksisteerib dev branchil või versioon x.x.x release-l?

Ma eeldan, et see sammune GD viga oli ehk dev-i peal (anna märku, kui eksin, sest seljuhul tahaksin veel veidi testida -->), kuna tol hetkel kõige uuem public versioon - kuigi faili leidmisega tõesti ei omanud probleeme, karjus nw-se-ne-aa parameetrite mitte-äratundmise üle tol hetkel.