Examples of ImageInfo


Examples of net.imagine.core.ImageInfo

      LOGGER.warn("写入本地临时文件失败", e);
      return ResultState.STORE_FAILED;
    }

    // 判断文件是否为图片格式
    ImageInfo info = operations.showImageInfo(localFile.getAbsolutePath());
    if (info == null) {
      try {
        FileUtils.forceDelete(localFile);
      } catch (IOException e) {
        LOGGER.warn("删除非图片文件失败", e);
View Full Code Here

Examples of net.sourceforge.jwbf.mediawiki.actions.queries.ImageInfo

   * @param imagename a
   * @see ImageInfo
   */
  public String getImageInfo(String imagename) throws ActionException, ProcessException {
   
    ImageInfo a = new ImageInfo(this, imagename);
    return a.getUrlAsString();
  }
View Full Code Here

Examples of org.ajax4jsf.resource.image.ImageInfo

   * @return ImageInfo of the image, if image resource present or null if method ImageInfo.check() return false;
   *
   * @throws IOException - if image not available or not exist
   */
  protected ImageInfo getImageResource(String path) throws IOException {
    ImageInfo info = new ImageInfo();
    try {
      info.setInput(getResourceIfPresent(path));
    } catch(IOException e){
      throw new IOException(IMAGE_NOT_FOUND_OR_UNAVAILABLE_MESSAGE + path);
    }
    return info.check() ? info : null;
  }
View Full Code Here

Examples of org.apache.commons.imaging.ImageInfo

                .decodeAllImages(contents.icnsElements);
        if (images.isEmpty()) {
            throw new ImageReadException("No icons in ICNS file");
        }
        final BufferedImage image0 = images.get(0);
        return new ImageInfo("Icns", 32, new ArrayList<String>(),
                ImageFormats.ICNS, "ICNS Apple Icon Image",
                image0.getHeight(), "image/x-icns", images.size(), 0, 0, 0, 0,
                image0.getWidth(), false, true, false,
                ImageInfo.COLOR_TYPE_RGB,
                ImageInfo.COMPRESSION_ALGORITHM_UNKNOWN);
View Full Code Here

Examples of org.apache.hadoop.hdfs.tools.offlineImageViewer.SpotCheckImageVisitor.ImageInfo

                                  "/bar/dir1/file0",
                                  "/bar/dir1/file1",
                                  "/bar/dir2/file0",
                                  "/bar/dir2/file1");
   
    ImageInfo v18Inodes = new ImageInfo(); // Hadoop version 18 inodes
    v18Inodes.totalNumBlocks = 12;
    v18Inodes.totalFileSize = 1069548540l;
    v18Inodes.pathNames = pathNames;
    v18Inodes.totalReplications = 14;
   
    ImageInfo v18INUCs = new ImageInfo(); // Hadoop version 18 inodes under construction
    v18INUCs.totalNumBlocks = 0;
    v18INUCs.totalFileSize = 0;
    v18INUCs.pathNames = INUCpaths;
    v18INUCs.totalReplications = 6;
   
    ImageInfo v19Inodes = new ImageInfo(); // Hadoop version 19 inodes
    v19Inodes.totalNumBlocks = 12;
    v19Inodes.totalFileSize = 1069548540l;
    v19Inodes.pathNames = pathNames;
    v19Inodes.totalReplications = 14;
   
    ImageInfo v19INUCs = new ImageInfo(); // Hadoop version 19 inodes under construction
    v19INUCs.totalNumBlocks = 0;
    v19INUCs.totalFileSize = 0;
    v19INUCs.pathNames = INUCpaths;
    v19INUCs.totalReplications = 6;
   
View Full Code Here

Examples of org.apache.sanselan.ImageInfo

            IImageMetadata metadata = Sanselan.getMetadata(imageFile);
            // assertNotNull(metadata);

            Map params = new HashMap();
            ImageInfo imageInfo = Sanselan.getImageInfo(imageFile, params);
            assertNotNull(imageInfo);

            BufferedImage image = Sanselan.getBufferedImage(imageFile);
            assertNotNull(image);
        }
View Full Code Here

Examples of org.apache.sanselan.ImageInfo

            IImageMetadata metadata = Sanselan.getMetadata(imageFile, params);
            //            assertNotNull(metadata);
            Debug.debug("metadata", metadata);

            ImageInfo imageInfo = Sanselan.getImageInfo(imageFile, params);
            assertNotNull(imageInfo);
        }
    }
View Full Code Here

Examples of org.apache.sanselan.ImageInfo

            // <b>get the image's width and height. </b>
            Dimension d = Sanselan.getImageSize(imageBytes);

            // <b>get all of the image's info (ie. bits per pixel, size, transparency, etc.) </b>
            ImageInfo imageInfo = Sanselan.getImageInfo(imageBytes);

            if (imageInfo.getColorType() == ImageInfo.COLOR_TYPE_GRAYSCALE)
                System.out.println("Grayscale image.");
            if (imageInfo.getHeight() > 1000)
                System.out.println("Large image.");

            // <b>try to guess the image's format. </b>
            ImageFormat image_format = Sanselan.guessFormat(imageBytes);
            image_format.equals(ImageFormat.IMAGE_FORMAT_PNG);
View Full Code Here

Examples of org.apache.sanselan.ImageInfo

                || imageFormat.equals(ImageFormat.IMAGE_FORMAT_JPEG))
            params
                    .put(PARAM_KEY_READ_THUMBNAILS, new Boolean(
                            !ignoreImageData));

        ImageInfo imageInfoFile = Sanselan.getImageInfo(imageFile, params);

        ImageInfo imageInfoBytes = Sanselan
                .getImageInfo(imageFileBytes, params);

        assertNotNull(imageInfoFile);
        assertNotNull(imageInfoBytes);
View Full Code Here

Examples of org.apache.sanselan.ImageInfo

            Debug.debug("imageFile", imageFile);

            IImageMetadata metadata = Sanselan.getMetadata(imageFile);
            assertNotNull(metadata);

            ImageInfo imageInfo = Sanselan.getImageInfo(imageFile);
            assertNotNull(imageInfo);

            BufferedImage image = Sanselan.getBufferedImage(imageFile);
            assertNotNull(image);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.