Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17002 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17002 Rev 17018
Línea 248... Línea 248...
248
 
248
 
249
                            $filename = 'image-' . uniqid() . '.png';
249
                            $filename = 'image-' . uniqid() . '.png';
250
                            $crop_to_dimensions = false;
250
                            $crop_to_dimensions = false;
Línea 251... Línea 251...
251
                            $unlink_source = true;
251
                            $unlink_source = true;
252
                            
252
                            
253
                            if($image->uploadImageChangeSize($tmp_filename, $target_path, $post->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) { 
253
                            if($image->uploadProcessChangeSize($tmp_filename, $target_path, $post->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) { 
254
                                $post->image = $filename;
254
                                $post->image = $filename;
255
                                $postMapper->update($post);
255
                                $postMapper->update($post);
256
                            }
256
                            }
Línea 471... Línea 471...
471
                        $filename = 'image-' . uniqid() . '.png';
471
                        $filename = 'image-' . uniqid() . '.png';
472
                        $crop_to_dimensions = true;
472
                        $crop_to_dimensions = true;
473
                        $unlink_source = false;
473
                        $unlink_source = false;
Línea 474... Línea 474...
474
                        
474
                        
Línea 475... Línea 475...
475
                        
475
                        
476
                        if ($image->uploadImageChangeSize($tmp_filename, $target_path, $post->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) { 
476
                        if ($image->uploadProcessChangeSize($tmp_filename, $target_path, $post->uuid, $filename, $target_width, $target_height, $crop_to_dimensions, $unlink_source)) { 
477
            
477
            
478
                            $post->image = $filename;
478
                            $post->image = $filename;