Themsen/PD4: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 36: Line 36:
  convert tile*.png slide.gif
  convert tile*.png slide.gif
  convert -delay 2 -dispose background -page +0+0 tile*.png slide.gif
  convert -delay 2 -dispose background -page +0+0 tile*.png slide.gif
[[file:slide33.gif]] (file is too large, one gif with all the pixels as part of slide)


Video of 1x1 gif: [http://youtu.be/jkZDR1TwNSs]
Video of 1x1 gif: [http://youtu.be/jkZDR1TwNSs]

Revision as of 07:18, 28 April 2015

Experiments with Python

ImageMagick

Montage:

$ montage -background '#336699' -geometry +4+4 gif2.gif gif9.gif montage.gif

2.gif Gif9.gif Montage.gif

Resize, Crop, Montage:

030920-mushroom.jpg</

$ mogrify -resize 100x100 030920-mushroom.jpg

030920-mushroom.jpg

$ convert mushroom100.jpg -crop 1x1 tile%04d.png

Screen Shot 2015-04-19 at 22.43.45.png

$ montage -background '#000000' -geometry +4+4 *.png montage.jpg

Montage1.jpg

Decrease padding between tiles

$ montage -background '#000000' -geometry +1+1 *.png montage.jpg

Montage1.gif

Convert all the tiles of the 1x1 cropped image into a 1x1 gif

convert tile*.png slide.gif
convert -delay 2 -dispose background -page +0+0 tile*.png slide.gif

Video of 1x1 gif: [1]