image-player
v1.5.3
Published
play images like a video
Downloads
4
Readme
image-player
play images like a video
extract video frames as jpg's
ffmpeg -i video.mp4 -c:v mjpeg -q:v 2 -f image2 "%d.jpg"
losless compress images (optional)
mkdir out
for f in *.jpg; do jpegtran -optimize -copy none -perfect -v "$f" > out/"$f"; done
use imagemagick to resize images for mobile
convert '*.jpg' -resize 568x319 mobile%d.jpg convert %d.jpg[1-601] -resize 568x319 mobile%d.jpg
montage %d.jpg[1-601] -tile 4x2 -geometry 1920x1080+0+0 -background transparent sprite.jpg
http://eosrei.net/articles/2015/12/generating-css-image-sprites-bash-and-imagemagick
montage %d.jpg[1-601] -background transparent -tile 1x601 -geometry 1920x1080 sprt.jpg