shithub: img

Download patch

ref: fa289cade26abe9c57986379d815b3a1316c93fa
parent: ab5412763ffb95ab14bbe642632e60661fab4aee
author: Alex Musolino <musolinoa@gmail.com>
date: Sat Jun 3 13:06:08 EDT 2023

fix scaling of portrait images

--- a/album.mk
+++ b/album.mk
@@ -15,16 +15,16 @@
 thumbs:V: $thumbs
 
 %.big.JPG:
-	convert $stem^.full.* -resize 1024 -auto-orient $target
+	convert $stem^.full.* -resize x768 -auto-orient $target
 
 %.medium.JPG: %.big.JPG
-	convert $prereq -resize 512 -auto-orient $target
+	convert $prereq -resize x384 -auto-orient $target
 
 %.small.JPG: %.medium.JPG
-	convert $prereq -resize 256 -auto-orient $target
+	convert $prereq -resize x192 -auto-orient $target
 
 %.thumb.JPG: %.small.JPG
-	convert $prereq -resize 128 -auto-orient $target
+	convert $prereq -resize x96 -auto-orient $target
 
 montage.jpg: smalls
 	$HOME/img/mkmontage.rc
--- a/mkalbumindex.rc
+++ b/mkalbumindex.rc
@@ -14,7 +14,6 @@
 	text-align: center;
 }
 img{
-	width: 128px;
 	height: 96px;
 }
 a{