Convert unsupported image formats

Description

Background

Customers can upload .TIFF files, but they cannot be displayed at this point. Not in Integrated and not in the front-end. The wish of a customer is to support the displaying of this type images.

Requirements

In the thumbnailer, and only if the "imagick" PECL extension is available:

  • Support on the fly conversion with imagemagick for all thumbnails / resized images
    In the integrated_image_dropzone formtype:

  • Try if it is supported by the thumbnailer, including the use of imagick (when available) (event). If not the form is not valid.

Test scenarios

With Imagick extension:

  • Uploading a .png file should result in a displayed image and a storage object with the .png file in it, Imagick is not used

  • Uploading a .tiff file should result in a displayed image and a storage object with the .tiff file in it

  • Uploading a "mygames.ramsaydash" file should raise a validation error
    Without imagick extension:

  • Uploading a .tiff file should raise a validation error

  • Uploading a "mygames.ramsaydash" file should raise a validation error

  • Uploading a .png file should result in a displayed image and a storage object with the .png file in it

Technical tasks

None

Deployment actions

Add to your app/kernel.php the following line: new Integrated\Bundle\ImageBundle\IntegratedImageBundle(),

Status

Assignee

Unassigned

Switches

None

Client

Integrated Marijn

Sprint

None

Fix versions

Configure