public interface

WebpTranscoder

com.facebook.imagepipeline.nativecode.WebpTranscoder
Known Indirect Subclasses

Class Overview

The abstraction for WebpTranscoder

Summary

Public Methods
abstract boolean isWebpNativelySupported(ImageFormat webpFormat)
abstract void transcodeWebpToJpeg(InputStream inputStream, OutputStream outputStream, int quality)
Transcodes webp image given by input stream into jpeg.
abstract void transcodeWebpToPng(InputStream inputStream, OutputStream outputStream)
Transcodes Webp image given by input stream into png.

Public Methods

public abstract boolean isWebpNativelySupported (ImageFormat webpFormat)

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

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

Transcodes webp image given by input stream into jpeg.

Throws
IOException

public abstract void transcodeWebpToPng (InputStream inputStream, OutputStream outputStream)

Transcodes Webp image given by input stream into png.

Throws
IOException