public function resize($nombre, $archivo, $ancho, $alto, $id, $path, $filter = NULL) { $path_absolute = JPATH_BASE; $app = JFactory::getApplication(); $arr1 = explode(".", $nombre); $tmp = $arr1[1]; //$nombre = $path_absolute."/".$path .DS. $id .DS. $nombre; $nombre = $path . DS . $id . DS . $nombre; $destarchivo = $path . DS . $id . DS . $archivo; //$archivo = $path_absolute."/".$path .DS. $id .DS. $archivo; $archivo = $path . DS . $id . DS . $archivo; //$app->enqueueMessage( JTEXT::_("Name file: ").$nombre); //$app->enqueueMessage( JTEXT::_("New name: ").$archivo); if (!file_exists($archivo)) { JError::raiseWarning(100, JTEXT::_("Not file exist ")); } fieldsattachHelper::resizeImg($archivo, $ancho, $alto, $archivo, $filter); }