Module Hub Beta

GRAPHICSMAGICK.TYPE

key

Return the format of the image stored in key (“PNG”, “GIF”, etc.).

Returns an error if no valid image is stored in key.

Return Value

Simple string reply: the type of image.

Examples

redis> GRAPHICSMAGICK.TYPE mypic
“PNG”

© 2017 Redis Labs, Inc. All rights reserved.