Modifier and Type | Field and Description |
---|---|
static ImageDimensions |
ImageDimensions.EMPTY |
Modifier and Type | Method and Description |
---|---|
static ImageDimensions |
ImageRenderUtils.dimensionsForImage(ImageInputStream inputStream)
Helper class that uses an
ImageReader to determine the width and height of an image. |
static ImageDimensions |
ImageRenderUtils.dimensionsForImage(InputStream is) |
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleImageRenderPredicate.apply(@Nullable ImageDimensions input)
Deprecated.
|
boolean |
FreeMemoryAwareImageRenderPredicate.apply(@Nullable ImageDimensions input)
Deprecated.
|
boolean |
SimpleImageSizeRenderPredicate.test(ImageDimensions input) |
boolean |
MemoryAwareImageRenderPredicate.test(ImageDimensions imageDimensions) |
Modifier and Type | Method and Description |
---|---|
default ImageDimensions |
ImagePlaceholder.getImageDimensions()
Returns the dimensions that the image is to be rendered as.
|
ImageDimensions |
DefaultImagePlaceholder.getImageDimensions() |
Constructor and Description |
---|
DefaultImagePlaceholder(String url,
boolean applyPlaceholderChrome,
ImageDimensions imageDimensions) |
Modifier and Type | Method and Description |
---|---|
ImageDimensions |
Dimensions.getImageDimensions()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.atlassian.core.util.thumbnail.Thumbnail |
DefaultThumbnailManager.getThumbnail(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Returns a thumbnail for this attachment having ensured the thumbnail exists in the filesystem, generating it only
if it doesn't already exist.
|
com.atlassian.core.util.thumbnail.Thumbnail |
ThumbnailManager.getThumbnail(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Returns a thumbnail for this attachment having ensured the thumbnail exists in the filesystem, generating it only
if it doesn't already exist.
|
InputStream |
DefaultThumbnailManager.getThumbnailData(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Retrieves the thumbnail data (as a stream) of the latest version from where it was stored in the file system.
|
InputStream |
ThumbnailManager.getThumbnailData(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Retrieves the thumbnail data (as a stream) of the latest version from where it was stored in the file system.
|
File |
DefaultThumbnailManager.getThumbnailFile(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Returns the path to the thumbnail for this attachment
|
File |
ThumbnailManager.getThumbnailFile(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Returns the path to the thumbnail for this attachment
|
ThumbnailInfo |
DefaultThumbnailManager.getThumbnailInfo(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Return the details of a thumbnail for a given attachment without actually creating the thumbnail file on disk.
|
ThumbnailInfo |
ThumbnailManager.getThumbnailInfo(@NonNull Attachment attachment,
@Nullable ImageDimensions imageDimensions)
Return the details of a thumbnail for a given attachment without actually creating the thumbnail file on disk.
|
ThumbnailInfo |
DefaultThumbnailManager.getThumbnailInfo(@NonNull Attachment attachment,
@Nullable String remoteAttachmentPath,
@Nullable ImageDimensions imageDimensions)
Return the details of a thumbnail for a given attachment without actually creating the thumbnail file on disk.
|
ThumbnailInfo |
ThumbnailManager.getThumbnailInfo(@NonNull Attachment attachment,
@Nullable String rootAttachmentPath,
@Nullable ImageDimensions imageDimensions)
Return the details of a thumbnail for a given attachment without actually creating the thumbnail file on disk.
|
Constructor and Description |
---|
Dimensions(ImageDimensions imageDimensions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ImageDimensions |
ThumbnailRenderer.dimensions(File inputFile) |
static ImageDimensions |
ThumbnailRenderer.dimensions(InputStream inputStream) |
Constructor and Description |
---|
DelegatingThumbnailRenderer(com.atlassian.core.util.thumbnail.Thumber thumber,
AttachmentManager attachmentManager,
Predicate<ImageDimensions> rasterBasedRenderingThreshold)
Create a DelegatingThumbnailRenderer that will use the
rasterBasedRenderingThreshold Predicate to decide
if it's going to use the stream based (lower quality but low memory consumption) or the
raster based renderer (higher quality but high memory consumption). |
ThumbnailRenderer(com.atlassian.core.util.thumbnail.Thumber thumber,
Predicate<ImageDimensions> rasterBasedRenderingThreshold) |
Copyright © 2003–2020 Atlassian. All rights reserved.