This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>The History of Venezuelan Arepas</title> | |
| <style> | |
| body { font-family: Georgia, serif; max-width: 720px; margin: 2em auto; line-height: 1.6; color: #333; } | |
| h1 { color: #8B4513; } | |
| .refs { font-size: 0.85em; color: #666; } | |
| .sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::error::Error; | |
| use image::ImageReader; | |
| fn main() -> Result<(), Box<dyn Error>> { | |
| let img_path = "data/picture.jpg"; | |
| let image = ImageReader::open(img_path)?.decode()?; | |
| let rgb_image = image.to_rgb8(); |