kindle-screensaver

Crates.iokindle-screensaver
lib.rskindle-screensaver
version0.1.0
created_at2025-03-28 01:55:34.63537+00
updated_at2025-03-28 01:55:34.63537+00
descriptionA library for converting images to kindle-compatible screensavers
homepage
repositoryhttps://github.com/jckli/kindle-screensaver
max_upload_size
id1609080
size46,336
jckli (jckli)

documentation

README

kindle-screensaver

A library for converting images to Kindle-compatible screensavers

Usage

You can specify different conversion options.

Note: Some conversion options may take a long time.

let input_path = Path::new("80.jpg");

let options = ConversionOptions {
    model: KindleModel::Paperwhite,
    dithering: DitheringAlgorithm::FloydSteinberg,
    optimize_contrast: true,
    resizing_method: ResizingMethod::Lanczos3,
};

match convert_to_kindle(input_path, options, None) {
    Ok(output_path) => println!("Successfully converted to: {}", output_path),
    Err(e) => eprintln!("Error: {}", e),
}


Commit count: 3

cargo fmt