Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

WebP

Build Status Coverage Code Style: Blue

WebP.jl is a Julia library for handling WebP images. WebP provides both lossy and lossless compression of images, and may offer smaller file sizes compared to JPEG and PNG.

The core functionality of this package is supported by the libwebp C library.

Usage

This package provides functions for reading and writing WebP image files,

  • WebP.read_webp
  • WebP.write_webp

as well as functions for decoding and encoding WebP image data,

  • WebP.decode
  • WebP.encode

Reading and writing

An image may be written,

using TestImages
using WebP
image = testimage("lighthouse")
WebP.write_webp("lighthouse.webp", image)

and subsequently read,

image = WebP.read_webp("lighthouse.webp")

Decoding and encoding

An image may be encoded,

using TestImages
using WebP
image = testimage("lighthouse")
data = WebP.encode(image) # data is a Vector{UInt8}

and subsequently decoded,

image = WebP.decode(data)

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /