PHP Classes

Getting some errors and no save cropped img

Recommend this page to a friend!

      Image Amatore  >  All threads  >  Getting some errors and no save...  >  (Un) Subscribe thread alerts  
Subject:Getting some errors and no save...
Summary:Small image upload produces error.
Messages:2
Author:Terry Woody
Date:2013-07-25 14:33:26
Update:2013-07-31 18:04:16
 

  1. Getting some errors and no save...   Reply   Report abuse  
Picture of Terry Woody Terry Woody - 2013-07-25 14:33:26
Tried a smaller image I wanted to crop and get this error:

Fatal error: Uncaught exception 'Exception' with message 'The new image size is greater than the actual image size' in /home/u141414260/public_html/mobitest/imgresize/images.class.php:121 Stack trace: #0 /home/u141414260/public_html/mobitest/imgresize/images.class.php(313): ImageAmatore->resizeImage(458.47665847666, 600) #1 /home/u141414260/public_html/mobitest/imgresize/uploader.php(16): ImageAmatore->resizePerforming(600, 600) #2 {main} thrown in /home/u141414260/public_html/mobitest/imgresize/images.class.php on line 121

Then tried a larger image and got to crop step. Cropped it and clicked send crop. Cropped image was not saved?

No error showed or no error log.

One excellent feature would be: Once cropped, force user to download to hard drive.

Thank you for sharing your work!

Terry

  2. Re: Getting some errors and no save...   Reply   Report abuse  
Picture of Estefano Salazar Estefano Salazar - 2013-07-31 18:04:16 - In reply to message 1 from Terry Woody
Hi!

First: The error is because your are passing a size (width and/or height) greater than the original size of the image. I need to see it because destroy the image and that should not happen. I forgot to clarify that the image size must be greater or equal than 600x600

The cropped image created from the example go to "resizeadas" directory. That is a simple example for "help" in the use of the class.

Have a nice day.

Greetings!