blogpage responsive styles

This commit is contained in:
2024-09-10 21:58:57 +02:00
parent ed8f4037a6
commit a9ef5c8f93
9 changed files with 372 additions and 51 deletions

View File

@ -234,8 +234,11 @@ fn get_export_formats(orig_img_path: &str) -> Vec<ExportFormat> {
.and_then(|ext| ext.to_str());
match path {
Some("jpg" | "jpeg") => vec![ExportFormat::Avif, ExportFormat::Jpeg],
Some("png") => vec![ExportFormat::Avif, ExportFormat::Png],
// THINK: Do we want to enable avif? It's very expensive to encode
// Some("jpg" | "jpeg") => vec![ExportFormat::Avif, ExportFormat::Jpeg],
// Some("png") => vec![ExportFormat::Avif, ExportFormat::Png],
Some("jpg" | "jpeg") => vec![ExportFormat::Jpeg],
Some("png") => vec![ExportFormat::Png],
Some(_) | None => vec![],
}
}