Package net.imagine.provider.skyline

Examples of net.imagine.provider.skyline.LocalImageResizeTask


        message.append("上传图片" + filename + "失败,失败原因:图片太大。\n");
        continue;
      }
      if (isLocal) {
        File localFile = (File) file;
        task = new LocalImageResizeTask(localFile.getAbsolutePath(),
            baseSizes);
      } else {
        MultipartFile multipartFile = (MultipartFile) file;
        task = new MultipartImageResizeTask(multipartFile, baseSizes,
            null, false);
View Full Code Here


        message.append("上传图片" + filename + "失败,失败原因:图片太大。\n");
        continue;
      }
      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);
View Full Code Here

        continue;
      }

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

          FileUtils.copyFile(new File(srcFile), destFile);
        } else {
          fileOperator.downloadFile(remoteFileKey, localFile);
        }
        // 压缩该目标图片
        LocalImageResizeTask task = new LocalImageResizeTask(localFile, baseSizes);
        task.setAlbumId(albumId);
        task.setUserId(ownerId);
        task.setSupportMulitFrame(false);
        ImageResizeResult resizeResult = imagine.processSingleImage(localStorePath, task);
        Photo portrait = albumService
            .createPortraitPhoto(user, portraitAlbum, resizeResult);
        remoteFileKey = portrait.getSmallFile() + '.' + portrait.getExt();
      } else {
View Full Code Here

TOP

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

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.