changeset 132:7a9cd078bf6a

bzip2 *.xcf files
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 23 Aug 2015 06:27:51 +0859
parents 9782a978d53c
children d5afe98a8b58
files s4-funcs.sh
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/s4-funcs.sh	Fri Aug 14 21:37:29 2015 +0900
+++ b/s4-funcs.sh	Sun Aug 23 06:27:51 2015 +0859
@@ -1056,6 +1056,11 @@
 	    type='file'; k=${k%:filename}
 (echo k=$k; ls -lF $tmpd/$v; file --mime-type $tmpd/$v) 1>&3
 	    case `file --mime-type $tmpd/$v|cut -d' ' -f2` in
+	      [Ii]mage/x-xcf)
+		bzip2 $tmpd/$v
+		v=${v}.bz2
+		;;
+	      [Ii]mage/x-*|*/vnd.*)	;;
 	      [Ii]mage/*)
 		mogrify -resize $maximagexy'>' $tmpd/$v
 		;;

yatex.org