public class

WebpTranscoderImpl

extends Object
implements WebpTranscoder
java.lang.Object
   ↳ com.facebook.imagepipeline.nativecode.WebpTranscoderImpl

Class Overview

Helper methods for modifying webp static images.

Summary

Public Constructors
WebpTranscoderImpl()
Public Methods
boolean isWebpNativelySupported(ImageFormat webpFormat)
void transcodeWebpToJpeg(InputStream inputStream, OutputStream outputStream, int quality)
Transcodes webp image given by input stream into jpeg.
void transcodeWebpToPng(InputStream inputStream, OutputStream outputStream)
Transcodes Webp image given by input stream into png.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.nativecode.WebpTranscoder

Public Constructors

public WebpTranscoderImpl ()

Public Methods

public boolean isWebpNativelySupported (ImageFormat webpFormat)

Returns
  • true if given type of WebP is supported natively by the framework

public void transcodeWebpToJpeg (InputStream inputStream, OutputStream outputStream, int quality)

Transcodes webp image given by input stream into jpeg.

Throws
IOException

public void transcodeWebpToPng (InputStream inputStream, OutputStream outputStream)

Transcodes Webp image given by input stream into png.

Throws
IOException