Skip to content

feat(imageversion): config based image conversion

Vignesh Devendran requested to merge 16-support-image-conversion-via-config into master

#16 (closed)

added a config as below based on the information provided in the issue and tests to check the changes.

 imageVersionExtension: {
      tiff: {
        small: 'png',
        medium: 'png',
      },
      svg: {
        small: 'svg',
        medium: 'svg',
      },
      png: {
        small: 'png',
        medium: 'png',
      },
      default: {
        small: 'jpeg',
        medium: 'jpeg',
      }
}

This could be changed to variables from .env e.g. tiff: { small: `TIFF_SMALL_EXTENSION`, medium: 'TIFF_MEDIUM_EXTENSION'} for each project to make use of this config customizable.

Merge request reports