magicanded

magicanded / algothumb / 0.2.5

README.md

algothumb - File Thumbnailator

algothumb create thumbnail for given file.

Usage

Input

algothumb receives JSON object with following attributes:

ParameterDescription
inputFileInput file which needs to be thumbnailized
thumbWidthWidth of thumbnail. Default is 150px.
thumbHeightHeight of thumbnail. Default is 200px.
forceSizeDefine if thumbnail must have given size or not. Default is false.

Output

algothumb returns JSON object with following attributes:

ParameterDescription
isError'true' if error occurs, 'false' if success
errorCodeCode name of error
errorMessageMessage of error
resultsResults object
results.outputFileThumbnail image file
results.outputFileUrlURL of Thumbnail image file