Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/s4-funcs.sh Thu Nov 10 12:57:05 2016 +0859 +++ b/s4-funcs.sh Sun Nov 13 22:51:37 2016 +0859 @@ -1599,10 +1599,10 @@ cat $tmpf | unhexize \ | tee $fifo \ | convert -define ${fmt}:size=${iconxy_M}x${iconxy_M} \ - -resize ${iconxy_M}x${iconxy_M}'>' - pnm:- \ + -resize ${iconxy_M}x${iconxy_M}'>' - ${fmt}:- \ | convert - "$cacheimg_M" & cat $fifo | convert -define ${fmt}:size=${iconxy_S}x${iconxy_S} \ - -resize ${iconxy_S}x${iconxy_S}'>' - pnm:- \ + -resize ${iconxy_S}x${iconxy_S}'>' - ${fmt}:- \ | convert - "$cacheimg_S" & printf '%s' "<img src=\"data:${filetype}," cat $tmpf | sed 's/\(..\)/%\1/g'