Línea 501... |
Línea 501... |
501 |
$tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . $filename;
|
501 |
$tmp_filename = 'data' . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . $filename;
|
502 |
file_put_contents($tmp_filename, $fileBase64Content);
|
502 |
file_put_contents($tmp_filename, $fileBase64Content);
|
Línea 503... |
Línea 503... |
503 |
|
503 |
|
Línea 504... |
Línea 504... |
504 |
list($target_width, $target_height) = explode('x', $this->config['leaderslinked.image_sizes.microlearning_image_size']);
|
504 |
list($target_width, $target_height) = explode('x', $this->config['leaderslinked.image_sizes.microlearning_image_size']);
|
505 |
|
505 |
|
506 |
$crop_to_dimensions = false;
|
506 |
$crop_to_dimensions = true;
|
507 |
if(Image::uploadImage($tmp_filename, $target_path, $filename, $target_width, $target_height, $crop_to_dimensions )) {
|
507 |
if(Image::uploadImage($tmp_filename, $target_path, $filename, $target_width, $target_height, $crop_to_dimensions )) {
|
508 |
$slide->image = basename($filename);
|
508 |
$slide->image = basename($filename);
|
509 |
$slideMapper->update($slide);
|
509 |
$slideMapper->update($slide);
|