Transcode all supported image types
This commit is contained in:
parent
a73d7b42cf
commit
ff67d9178b
2 changed files with 10 additions and 2 deletions
|
@ -181,6 +181,15 @@ export function isImageAttachment(
|
|||
isImageTypeSupported(attachment.contentType)
|
||||
);
|
||||
}
|
||||
|
||||
export function canBeTranscoded(
|
||||
attachment?: AttachmentType
|
||||
): attachment is AttachmentType {
|
||||
return Boolean(
|
||||
isImageAttachment(attachment) && !MIME.isGif(attachment.contentType)
|
||||
);
|
||||
}
|
||||
|
||||
export function hasImage(
|
||||
attachments?: Array<AttachmentType>
|
||||
): string | boolean | undefined {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue