Expand description
This library connects to a given url and tries to find references to icons that represent the page. Multiple standards are used for this:
- default favicon.ico in root and as “link rel” wikipedia.org/wiki/Favicon
- apple touch icon Apple docs
- Open graph image ogp.me
- Windows 8 tile images Microsoft technet
All images are converted to absolute urls and checked if connecting to them works. They get analyzed for pixel size and only the necessary bytes are downloaded for that to happen.
§Example
let url = "https://google.com";
let list = ImageLink::from_website(url, "TEST", 5).unwrap();
println("{:?}", list);
Structs§
- Image
Link - Holds information about an image
Enums§
- Image
Type - Types of image formats that this crate can identify.