Skip to main content

data_url

Function data_url 

Source
pub fn data_url(lib: &Library, item: &Item) -> Option<String>
Expand description

Copy Base64: a data: URL of the item’s original when it is a JPEG, PNG, WebP or GIF, else of its thumbnail (whose real format is sniffed: Eagle’s thumbnails are WebP inside a .png name). None when there is neither.