Package com.google.walkaround.wave.server.attachment.AttachmentMetadata

Examples of com.google.walkaround.wave.server.attachment.AttachmentMetadata.ImageMetadata


    ThumbnailData thumbnail = thumbnailDirectory.getWithoutTx(key);

    if (thumbnail == null) {
      log.info("Generating and storing thumbnail for " + key);

      ImageMetadata thumbDimensions = metadata.getThumbnail();

      if (thumbDimensions == null) {
        // TODO(danilatos): Provide a default thumbnail
        throw NotFoundException.withInternalMessage("No thumbnail available for attachment " + id);
      }

      byte[] thumbnailBytes = rawService.getResizedImageBytes(key,
          thumbDimensions.getWidth(), thumbDimensions.getHeight());

      thumbnail = new ThumbnailData(key, thumbnailBytes);

      if (thumbnailBytes.length > maxThumbnailSavedSizeBytes) {
        log.warning("Thumbnail for " + key + " too large to store " +
View Full Code Here

TOP

Related Classes of com.google.walkaround.wave.server.attachment.AttachmentMetadata.ImageMetadata

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.