congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Thumber.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.atlassian.core.util.thumbnail.Thumber
constructor

Best Java code snippets using com.atlassian.core.util.thumbnail.Thumber.<init> (Showing top 5 results out of 315)

origin: com.atlassian.jira/jira-core

public CroppingAvatarImageDataProviderFactoryImpl(final AvatarTagger avatarTagger, final ImageScaler scaler)
{
  this.scaler = scaler;
  thumber = new Thumber();
  this.avatarTagger = avatarTagger;
  this.targetFormat = "png";
}
origin: com.atlassian.jira/jira-rest-plugin

public ImageFileOperations()
{
  this.thumber = new Thumber();
}
origin: com.atlassian.jira/jira-core

public AvatarPickerHelperImpl(AvatarManager avatarManager,
    JiraAuthenticationContext authenticationContext,
    ApplicationProperties properties,
    VelocityRequestContextFactory requestContextFactory,
    UserUtil userUtil,
    final UniversalAvatarsService universalAvatarsService)
{
  this.avatarManager = avatarManager;
  this.authenticationContext = authenticationContext;
  this.applicationProperties = properties;
  this.requestContextFactory = requestContextFactory;
  this.userUtil = userUtil;
  this.universalAvatarsService = universalAvatarsService;
  this.thumber = new Thumber(Thumbnail.MimeType.PNG);
}
origin: com.atlassian.jira/jira-core

public Thumbnail withInputStream(final InputStream in) throws MalformedURLException
  final Thumbnail thumbnail = new Thumber(MIME_TYPE).retrieveOrCreateThumbNail(in,
      attachment.getFilename(), thumbnailFile, maxWidth, maxHeight, attachment.getId());
  if (thumbnail == null)
origin: com.atlassian.jira/jira-core

File processImage(final Avatar created, final InputStream imageData, final Selection croppingSelection, final ImageSize size)
    throws IOException
{
  RenderedImage image = scaler.getSelectedImageData(new Thumber().getImage(imageData), croppingSelection, size.getPixels());
  File file = createAvatarFile(created, size.getFilenameFlag());
  avatarTagger.saveTaggedAvatar(image, AVATAR_IMAGE_FORMAT_FULL.getName(), file);
  eventPublisher.publish(new JiraHomeChangeEvent(JiraHomeChangeEvent.Action.FILE_ADD,
      JiraHomeChangeEvent.FileType.AVATAR, file));
  return file;
}
com.atlassian.core.util.thumbnailThumber<init>

Javadoc

Legacy compatible behaviour, all thumnails generated will be of type com.atlassian.core.util.thumbnail.Thumbnail.MimeType#JPGwhich does not support transparency.

Popular methods of Thumber

  • getImage
    Reads an image from the specified input stream.
  • scaleImage
    This method should take BufferedImage argument, but takes just Image for backward compatibility (so
  • determineScaleSize
  • createThumbnail
  • getThumbnail
  • isFileSupportedImage
  • retrieveOrCreateThumbNail
    Need to pass filename in as we cannot get the filename from the stream that is passed in
  • storeImage
    Store Image in format defined by Thumber constructor.
  • checkOutputFileCreation
  • storeImageAsJpeg
  • storeImageAsPng
  • storeImageAsPng

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now