s4
diff s4-funcs.sh @ 149:0e28561bf73a
Specify `max-width: 400px' to p.profimg img
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 30 Nov 2015 09:30:53 +0859 |
parents | afc3bf5c9dbb |
children | 6ee08d8b0f5f |
line diff
1.1 --- a/s4-funcs.sh Mon Nov 30 09:07:49 2015 +0859 1.2 +++ b/s4-funcs.sh Mon Nov 30 09:30:53 2015 +0859 1.3 @@ -1365,7 +1365,7 @@ 1.4 img=`query "SELECT type FROM user_m $sqcond LIMIT 1;"` 1.5 imf=$tmpd/profimg.$$; touch $imf 1.6 if [ -n "$img" ]; then 1.7 - { printf '%s' "<img width=\"400\" src=\"data:${img#file:}," 1.8 + { printf '%s' "<img src=\"data:${img#file:}," 1.9 query "SELECT hex(bin) FROM user_m $sqcond LIMIT 1;" \ 1.10 | sed 's/\(..\)/%\1/g' 1.11 echo '"'