Compare commits

...

2 Commits

Author SHA1 Message Date
PuzzleMoon
d1a14d3489 css img object-fit to preserve aspect ratio 2025-01-29 17:58:17 +01:00
aabea6fb12
ignore hidden files 2025-01-29 17:48:08 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func (e EPUBImageProcessor) isSupportedImage(path string) bool {
switch strings.ToLower(filepath.Ext(path)) {
case ".jpg", ".jpeg", ".png", ".webp", ".tiff":
{
return true
return !strings.HasPrefix(filepath.Base(path), ".")
}
}
return false

View File

@ -15,4 +15,5 @@ img {
margin:0;
padding:0;
z-index:0;
}
object-fit: contain;
}