Skip to content

Instantly share code, notes, and snippets.

@MDecker-MobileComputing
Created April 17, 2021 08:56
Show Gist options
  • Save MDecker-MobileComputing/6ac576c3a512d2d462920b8e182beaa6 to your computer and use it in GitHub Desktop.
Save MDecker-MobileComputing/6ac576c3a512d2d462920b8e182beaa6 to your computer and use it in GitHub Desktop.
Bash-Skript um einzelne Würfel mit ImageMagick aus Grafik von Pixabay auszuschneiden
#!/bin/bash
# Skript zum Ausschneiden einzelner Würfel aus dem folgenden Bild:
# https://pixabay.com/de/illustrations/spiel-w%C3%BCrfel-dominospiel-1905965/
# Download in Auflösung mit 640px Breite
convert pixabay_wuerfel_640.png -crop 210x210+0+0 wuerfel_1.png
convert pixabay_wuerfel_640.png -crop 210x210+214+0 wuerfel_2.png
convert pixabay_wuerfel_640.png -crop 210x210+428+0 wuerfel_3.png
convert pixabay_wuerfel_640.png -crop 210x210+0+214 wuerfel_4.png
convert pixabay_wuerfel_640.png -crop 210x210+214+214 wuerfel_5.png
convert pixabay_wuerfel_640.png -crop 210x210+428+214 wuerfel_6.png
@MDecker-MobileComputing
Copy link
Author

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