Skip to content

Instantly share code, notes, and snippets.

convert myimage.png \
-adaptive-resize '144x168>' \
-fill '#FFFFFF00' -opaque none \
-type Grayscale -colorspace Gray \
-black-threshold 30% -white-threshold 70% \
-ordered-dither 2x1 \
-colors 2 -depth 1 \
-define png:compression-level=9 -define png:compression-strategy=0 \
-define png:exclude-chunk=all \
myimage.pbl.png
@smndhm
smndhm / soundImage
Created February 16, 2015 21:43
FFmpeg : 30s video with combined image and audio file
ffmpeg \
-loop 1 -i INPUT_IMAGE_FILE.jpg \
-i INPUT_AUDIO_FILE.mp3 \
-strict experimental -c:a aac -b:a 128k \
-c:v libx264 -tune stillimage -pix_fmt yuv420p -r 0.033 \
-shortest -t 30 -y \
OUTPUT_VIDEO_FILE.mp4
@smndhm
smndhm / flatColorsArray
Last active May 3, 2021 07:36
Flat Colors Array / Colors from http://flatuicolors.com
["#1abc9c", "#2ecc71", "#3498db", "#9b59b6", "#34495e", "#16a085", "#27ae60", "#2980b9", "#8e44ad", "#2c3e50", "#f1c40f", "#e67e22", "#e74c3c", "#ecf0f1", "#95a5a6", "#f39c12", "#d35400", "#c0392b", "#bdc3c7", "#7f8c8d"]