tImageBlob

public static Blob tImageBlob(Object blob)

Transforms a blob to an image blob, validating its mime type.

Return

the transformed Blob if it is an image.

Parameters

blob

the object to transform, can be a Blob or a dictionary.

Throws

if the blob is not an image.