| Crates.io | kindle-screensaver |
| lib.rs | kindle-screensaver |
| version | 0.1.0 |
| created_at | 2025-03-28 01:55:34.63537+00 |
| updated_at | 2025-03-28 01:55:34.63537+00 |
| description | A library for converting images to kindle-compatible screensavers |
| homepage | |
| repository | https://github.com/jckli/kindle-screensaver |
| max_upload_size | |
| id | 1609080 |
| size | 46,336 |
A library for converting images to Kindle-compatible screensavers
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),
}