s4

changeset 363:e25b701dac6c

Intermediate conversion image type obeys target image type
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 13 Nov 2016 22:51:37 +0859
parents 955cd7b517d3
children 05641ff595f6
files s4-funcs.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Thu Nov 10 12:57:05 2016 +0859
     1.2 +++ b/s4-funcs.sh	Sun Nov 13 22:51:37 2016 +0859
     1.3 @@ -1599,10 +1599,10 @@
     1.4      cat $tmpf | unhexize \
     1.5  	| tee $fifo \
     1.6  	| convert -define ${fmt}:size=${iconxy_M}x${iconxy_M} \
     1.7 -		  -resize ${iconxy_M}x${iconxy_M}'>' - pnm:- \
     1.8 +		  -resize ${iconxy_M}x${iconxy_M}'>' - ${fmt}:- \
     1.9  	| convert - "$cacheimg_M" &
    1.10      cat $fifo | convert -define ${fmt}:size=${iconxy_S}x${iconxy_S} \
    1.11 -			-resize ${iconxy_S}x${iconxy_S}'>' - pnm:- \
    1.12 +			-resize ${iconxy_S}x${iconxy_S}'>' - ${fmt}:- \
    1.13  	| convert - "$cacheimg_S" &
    1.14      printf '%s' "<img src=\"data:${filetype},"
    1.15      cat $tmpf | sed 's/\(..\)/%\1/g'