Reply to Image transformations failed

Image transformations failed new!
by Karsp, 2 years, 5 months ago
Hi everyone!
First of all I would like to thanks Verot and (if they are) all the people that helps this project be that good!

I'm developing a website for a costumer, and I wanted to crop and resize images they upload, and that's how I found class upload.

I'm able to upload correctly the file, rename and move ir to the desire destination. But for some reason I cant apply the images transformation as image_convert, resize or crop (or precrop).
I've review all the official doccumentation and some other questions* from the community but I couldn't find what is the problem.
Could someone help me? This is the code I'm using:

namespace Verot\Upload;
$v0=0; //valor para enviar estado 0 en driver
$v1=1; //valor para enviar estado 1 en driver
// ---------- IMAGE BIO UPLOAD ----------
$handle = new Upload($_FILES['upload_bio_image']);
if ($handle->uploaded) {
  $handle->image_x = $_width;
  $handle->image_resize = true;
  $handle->jpeg_quality    = 80;
  $handle->file_overwrite = true; 
  $handle->file_auto_rename = false;
  $handle->image_ratio_crop = true;
  $handle->file_new_name_body = $user_id.'-profile';
  $handle->image_convert = 'jpg';
  $handle->image_precrop = array($_top, $_right, $_bottom, $_left); 

  if ($handle->processed) {
    // everything was fine !
    // header("Location: ../space-profile-2.php?text=img-success");

  } else {
    // one error occured
     /* echo '  File not uploaded to the wanted location';
    echo '  Error: ' . $handle->error . '';*/
  // we delete the temporary files
  $handle-> clean();
} else {
  // if we're here, the upload file failed for some reasons
  // i.e. the server didn't receive the file
  /*echo 'File not uploaded on the server';
  echo '  Error: ' . $handle->error . '';*/

Also I would like to know if I need to get a license to use it.
Thanks in advance!


Your reply

Name *
Title *
Text *
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important