Examples of Thumbnail


Examples of org.photovault.imginfo.Thumbnail

        }
        photo.setPhotographer( "test" );
        try {
           
            PhotoInfo photo2 = PhotoInfo.retrievePhotoInfo( photo.getUid() );
            Thumbnail thumb = photo2.getThumbnail();
            this.assertFalse( "Default thumbnail returned", thumb == Thumbnail.getDefaultThumbnail() );
        } catch (PhotoNotFoundException ex) {
            fail( "Photo not found in database" );
        }
    }
View Full Code Here

Examples of org.rometools.feed.module.mediarss.types.Thumbnail

                            "time"));
                    Integer width = (thumb.getAttributeValue("width") == null)
                    ? null : new Integer(thumb.getAttributeValue("width"));
                    Integer height = (thumb.getAttributeValue("height") == null)
                    ? null : new Integer(thumb.getAttributeValue("height"));
                    values.add(new Thumbnail(
                            new URI(thumb.getAttributeValue("url")), width,
                            height, t));
                } catch (Exception ex) {
                    LOG.log(Level.WARNING, "Exception parsing thumbnail tag.",
                            ex);
View Full Code Here

Examples of org.structr.web.common.ImageHelper.Thumbnail

    final App app = StructrApp.getInstance(securityContext);

    try {
      originalImage.setProperty(File.checksum, newChecksum);

      Thumbnail thumbnailData = ImageHelper.createThumbnail(originalImage, maxWidth, maxHeight, cropToFit);
      if (thumbnailData != null) {

        Integer tnWidth  = thumbnailData.getWidth();
        Integer tnHeight = thumbnailData.getHeight();
        byte[] data      = null;

        try {

          data = thumbnailData.getBytes();
          final String thumbnailName = originalImage.getName() + "_thumb_" + tnWidth + "x" + tnHeight;

          // create thumbnail node
          thumbnail = ImageHelper.createImage(securityContext, data, "image/" + Thumbnail.FORMAT, Image.class, thumbnailName, true);
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.