las tenia inicializadas en 0, cambie por 1 y ahora no me tira error.
El error que sigue tirando es:
Código PHP:
Warning: getimagesize(../img/tmp/18226.jpg): failed to open stream: No such file or directory in c:archivos de programaeasyphp1-8wwwpassionadmininchft_image.php on line 292
y esa parte en el hft_image.php es:
Código PHP:
function output_original($destination_file, $image_type="JPG") {
return _output_image($destination_file, $image_type, $this->image_original);
}
function output_resized($destination_file, $image_type="JPG") {
global $lid;
$res = $this->_output_image($destination_file, $image_type, $this->image_resized);
if(trim($destination_file)){
$sz=getimagesize($destination_file);
$this->file_resized = $destination_file;
$this->image_resized_width = $sz[0];
$this->image_resized_height = $sz[1];
$this->image_resized_type_code=$sz[2];
$this->image_resized_html_sizes=$sz[3];
switch($this->image_resized_html_sizes){
case 0:
$this->image_resized_type_abbr = "GIF";
break;
case 1:
$this->image_resized_type_abbr = "JPG";
break;
case 2:
$this->image_resized_type_abbr = "PNG";
break;
case 3:
$this->image_resized_type_abbr = "SWF";
break;
default:
$this->image_resized_type_abbr = "UNKNOWN";
break;
}
}
return $res;
}
function _output_image($destination_file, $image_type, $image){
global $lid;
global $ERR;
$destination_file = trim($destination_file);
$res = false;
if($image){
switch($image_type) {
case 'JPEG':
case 'JPG':
$res = ImageJpeg($image, $destination_file, $this->jpeg_quality);
break;
case 'PNG':
$res = Imagepng($image, $destination_file);
break;
default:
$this->error($ERR["UNKNOWN_OUTPUT_FORMAT"]." $image_type");
break;
}
}else{
$this->error($ERR["NO_IMAGE_FOR_OUTPUT"]);
}
if(!$res) $this->error($ERR["UNABLE_TO_OUTPUT"]." $destination_file");
return $res;
}
Antes que nada te agradezco por la respuesta,