in source/image-handler/image-handler.ts [403:422]
private static convertImageFormatType(imageFormatType: ImageFormatTypes): keyof FormatEnum {
switch (imageFormatType) {
case ImageFormatTypes.JPG:
return 'jpg';
case ImageFormatTypes.JPEG:
return 'jpeg';
case ImageFormatTypes.PNG:
return 'png';
case ImageFormatTypes.WEBP:
return 'webp';
case ImageFormatTypes.TIFF:
return 'tiff';
case ImageFormatTypes.HEIF:
return 'heif';
case ImageFormatTypes.RAW:
return 'raw';
default:
throw new ImageHandlerError(StatusCodes.INTERNAL_SERVER_ERROR, 'UnsupportedOutputImageFormatException', `Format to ${imageFormatType} not supported`);
}
}