Rate This Document
Findability
Accuracy
Completeness
Readability

Introduction

This document provides the installation guide and usage examples of the Kunpeng Image Library.

The Kunpeng Image Library optimizes the image encoding performance of open source image libraries libwebp and libavif, as well as the sws_scale function in FFmpeg libswscale, through vector, algorithm, and process optimization.

  • libwebp is the official library of the WebP image format. It supports lossy and lossless compression, and has features for transparency (alpha channel) and animation. Compared with traditional formats (such as JPEG and PNG), WebP can significantly reduce the file size while ensuring image quality. It is an ideal choice for web page image optimization.
  • libavif is an image library based on the AV1 codec to process AVIF images. AVIF is known for its advanced compression algorithm, which provides extremely small file sizes while retaining high-quality details. It is especially suitable for scenarios that require high image quality with limited bandwidth or storage, such as cover images on mobile devices or online video platforms.
  • sws_scale is a core function in FFmpeg libswscale for image pixel format conversion and resolution scaling. It is commonly used in video processing, transcoding, and rendering.