Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 333 Rev 334
Línea 660... Línea 660...
660
                    $source             = $files['image']['tmp_name'];
660
                    $source             = $files['image']['tmp_name'];
661
                    $target_filename    = 'group-image-' . uniqid() . '.png';
661
                    $target_filename    = 'group-image-' . uniqid() . '.png';
662
                    $crop_to_dimensions = true;
662
                    $crop_to_dimensions = true;
663
                    $unlink_source = true;
663
                    $unlink_source = true;
Línea 664... Línea 664...
664
                    
664
                    
665
                    if(!$image->uploadImageChangeSize($source, $target_path, $group->uuid, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
665
                    if(!$image->uploadProcessChangeSize($source, $target_path, $group->uuid, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
666
                        return new JsonModel([
666
                        return new JsonModel([
667
                            'success'   => false,
667
                            'success'   => false,
668
                            'data'   =>  'ERROR_THERE_WAS_AN_ERROR'
668
                            'data'   =>  'ERROR_THERE_WAS_AN_ERROR'
669
                        ]);
669
                        ]);
Línea 805... Línea 805...
805
                    $source             = $files['cover']['tmp_name'];
805
                    $source             = $files['cover']['tmp_name'];
806
                    $target_filename    = 'group-cover-' . uniqid() . '.png';
806
                    $target_filename    = 'group-cover-' . uniqid() . '.png';
807
                    $crop_to_dimensions = false;
807
                    $crop_to_dimensions = false;
808
                    $unlink_source = true;
808
                    $unlink_source = true;
Línea 809... Línea 809...
809
                    
809
                    
810
                    if(!$image->uploadImageChangeSize($source, $target_path, $group->uuid, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
810
                    if(!$image->uploadProcessChangeSize($source, $target_path, $group->uuid, $target_filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) {
811
                        return new JsonModel([
811
                        return new JsonModel([
812
                            'success'   => false,
812
                            'success'   => false,
813
                            'data'   =>  'ERROR_THERE_WAS_AN_ERROR'
813
                            'data'   =>  'ERROR_THERE_WAS_AN_ERROR'
814
                        ]);
814
                        ]);