From: short <> Date: Fri, 17 Aug 2001 20:40:46 +0000 (+0000) Subject: .jpg -> .jpeg to respect proper image/jpeg file extension X-Git-Url: https://git.jankratochvil.net/?p=www.energie.vellum.cz.git;a=commitdiff_plain;h=50054f5efd5ab8b49877873ce60f508370f300c1 .jpg -> .jpeg to respect proper image/jpeg file extension --- diff --git a/common.php b/common.php index f79b6b3..7578271 100644 --- a/common.php +++ b/common.php @@ -118,8 +118,8 @@ function month_a($year,$month,$month_last=0) $r=array("year"=>$year,"month"=>$month,"month_last"=>$month_last,"month_full"=>$month_full, "name"=>"$year/${month_full}", - "img" =>"img/eap-$year-${month_full}.jpg", - "icon"=>"img/eap-$year-${month_full}s.jpg", + "img" =>"img/eap-$year-${month_full}.jpeg", + "icon"=>"img/eap-$year-${month_full}s.jpeg", ); return($r); } diff --git a/title-convert.sh b/title-convert.sh index 16624fb..d4072af 100755 --- a/title-convert.sh +++ b/title-convert.sh @@ -7,8 +7,8 @@ while [ $# -gt 0 ];do gs -sDEVICE=png16m -r500 -dNOPAUSE -sOutputFile="$f"-gs.png "$f".ps -c quit pngtopnm "$f"-gs.png |pnmcrop|pnmscale 0.125|pnmtopng -interlace -verbose >"$f".png rm -f "$f"-gs.png - pngtopnm "$f".png |cjpeg -optimize >"$f".jpg - pngtopnm "$f".png |pnmscale .2|cjpeg -optimize >"$f"s.jpg + pngtopnm "$f".png |cjpeg -optimize >"$f".jpeg + pngtopnm "$f".png |pnmscale .2|cjpeg -optimize >"$f"s.jpeg rm -f "$f".png done