Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active July 8, 2024 17:15
Show Gist options
  • Save dewomser/7965524db9de6c9096dfb69a4d926069 to your computer and use it in GitHub Desktop.
Save dewomser/7965524db9de6c9096dfb69a4d926069 to your computer and use it in GitHub Desktop.
3 randomatisierte Pixel-jpgs werden zu einem Endlos-Gif
#!/bin/bash
for i in {1..5}; do
mx=480;my=320;head -c "$((3*mx*my))" /dev/urandom | magick -depth 8 -size "${mx}x${my}" RGB:- random$i.jpg
done
magick -delay 20 -loop 0 random[1-5].jpg myimage.gif
@dewomser
Copy link
Author

myimage

@dewomser
Copy link
Author

initial

@dewomser
Copy link
Author

dewomser commented Jul 8, 2024

convert ersetzt durch magick
das * durch random[1-5] ersetzt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment