null, false);
resizeTask.setAlbumId(albumId);
resizeTask.setUserId(userId);
resizeTask.setSupportMulitFrame(false);
ImageResizeResult processResult = imagine.processSingleImage(basePath, resizeTask);
ResultState resultState = processResult.getResultState();
if (resultState != ResultState.SUCCESS) {
jsonMap = resultToJsonMap(resultState, null);
OutputStream out = response.getOutputStream();
outputJsonResult(out, jsonMap);
return;