feat(imageversion): config based image conversion
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.