0

向《大鱼》致敬

 2 years ago
source link: http://blog.tangzhixiong.com/post-0038-salute-to-big-fish.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

向《大鱼》致敬

《大鱼》是一个奇幻电影,很有意思。

先用 VLC 播放器截屏,再用下面的脚本批处理图片:

#!/bin/bash

X="75"
Y="79"
dX="+0"
dY="+0"

for i in *.png;
do
    image=`basename ${i} .png`
    echo Input: ${i}
    convert ${i} -gravity Center \
            -crop ${X}x${Y}%${dX}${dY} ${i} \
      && echo "Croping done"
    convert ${i} -resize %50 ${i} \
      && echo "Resizing done"
done

echo all done

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK