Package net.imagine.provider.skyline

Examples of net.imagine.provider.skyline.MultipartImageResizeTask


        File localFile = (File) file;
        task = new LocalImageResizeTask(localFile.getAbsolutePath(),
            baseSizes);
      } else {
        MultipartFile multipartFile = (MultipartFile) file;
        task = new MultipartImageResizeTask(multipartFile, baseSizes,
            null, false);
      }
      task.setUserId(userId);
      task.setAlbumId(albumId);
      tasks.add(task);
View Full Code Here


        jsonMap = resultToJsonMap(ResultState.NO_FILE_EXIST, null);
        OutputStream out = response.getOutputStream();
        outputJsonResult(out, jsonMap);
        return;
      }
      MultipartImageResizeTask resizeTask = new MultipartImageResizeTask(file, baseSizes,
          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();
View Full Code Here

        jsonMap = resultToJsonMap(ResultState.NO_FILE_EXIST, null);
        OutputStream out = response.getOutputStream();
        outputJsonResult(out, jsonMap);
        return;
      }
      MultipartImageResizeTask resizeTask = new MultipartImageResizeTask(file, baseSizes,
          null, false);
      resizeTask.setAlbumId(albumId);
      resizeTask.setUserId(spotId);
      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();
View Full Code Here

      if (isLocal) {
        File localFile = (File) file;
        task = new LocalImageResizeTask(localFile.getAbsolutePath(), baseSizes);
      } else {
        MultipartFile multipartFile = (MultipartFile) file;
        task = new MultipartImageResizeTask(multipartFile, baseSizes, null, false);
      }
      task.setUserId(userId);
      task.setAlbumId(albumId);
      tasks.add(task);
    }
View Full Code Here

      if (isLocal) {
        File localFile = (File) file;
        task = new LocalImageResizeTask(localFile.getAbsolutePath(), baseSizes);
      } else {
        MultipartFile multipartFile = (MultipartFile) file;
        task = new MultipartImageResizeTask(multipartFile, baseSizes, null, false);
      }

      task.setUserId(userId);
      task.setAlbumId(albumId);
View Full Code Here

TOP

Related Classes of net.imagine.provider.skyline.MultipartImageResizeTask

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.