@ExperimentalApi public interface

CroppingAvatarImageDataProviderFactory

com.atlassian.jira.avatar.CroppingAvatarImageDataProviderFactory
Known Indirect Subclasses

@ExperimentalApi

This interface is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Cropps image from given stream and provides object that can write result of cropping as avatar in many sizes. This is interface to component that can be injected.

Summary

Public Methods
@Nonnull AvatarImageDataProvider createStreamsFrom(InputStream uploadedImage, Selection cropping)
Creates avatar image data provider that uses fragment of image.

Public Methods

@Nonnull public AvatarImageDataProvider createStreamsFrom (InputStream uploadedImage, Selection cropping)

Creates avatar image data provider that uses fragment of image.

Parameters
uploadedImage original image data stream
cropping image fragment description (if null some matching to requested size part of image is taken)
Returns
Throws
IOException