Proyectos de Subversion LeadersLinked - Services

Rev

Rev 333 | Rev 340 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 333 Rev 334
Línea 1772... Línea 1772...
1772
                                $image = Image::getInstance($this->config);
1772
                                $image = Image::getInstance($this->config);
1773
                                $target_path    = $image->getStorage()->getPathUser();
1773
                                $target_path    = $image->getStorage()->getPathUser();
1774
                                $unlink_source  = true;
1774
                                $unlink_source  = true;
Línea 1775... Línea 1775...
1775
                                
1775
                                
1776
                                
1776
                                
1777
                                if (!$image->uploadImageChangeSize($source, $target_path, $user->uuid, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
1777
                                if (!$image->uploadProcessChangeSize($source, $target_path, $user->uuid, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
1778
                                    return new JsonModel([
1778
                                    return new JsonModel([
1779
                                        'success'   => false,
1779
                                        'success'   => false,
1780
                                        'data'   =>  'ERROR_THERE_WAS_AN_ERROR'
1780
                                        'data'   =>  'ERROR_THERE_WAS_AN_ERROR'