#screensaver #e-ink #image #kindle #convert-images

kindle-screensaver

A library for converting images to kindle-compatible screensavers

1 unstable release

Uses new Rust 2024

new 0.1.0 Mar 28, 2025

#557 in Images

MIT license

19KB
391 lines

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),
}


Dependencies

~3.5MB
~71K SLoC