Based on https://sharpletters.net/2025/04/16/hdr-emoji/
If you thought HDR emojis were annoying, just wait until you see this sunsploding HDR emoji.
Based on https://sharpletters.net/2025/04/16/hdr-emoji/
If you thought HDR emojis were annoying, just wait until you see this sunsploding HDR emoji.
#!/bin/bash | |
# Crate a gif of a sunsplode effect on an image | |
# Usage: ./sunsplode.sh input.png | |
input="$1" | |
base="${input%.*}" | |
output="${base}-sunsplode.gif" | |
# Create output directory | |
mkdir -p "${base}-sunsplode" | |
# Loop through increments of 0.1 from 0.1 to 2.0 | |
for i in $(seq 0.6 0.2 3.0) $(seq 3.0 -0.2 0.6); do | |
# Use a counter for sequential file naming | |
counter=$((counter + 1)) | |
multiplier=$(printf "%.1f" "$i") | |
output_file="${base}-sunsplode/frame_$(printf "%03d" $counter).png" | |
magick "$input" \ | |
-define quantum:format=floating-point \ | |
-colorspace RGB \ | |
-auto-gamma \ | |
-evaluate Multiply "$multiplier" \ | |
-evaluate Pow 0.9 \ | |
-colorspace sRGB \ | |
-depth 16 \ | |
-profile ~/.dotfiles/bin/2020_profile.icc \ | |
"$output_file" | |
echo "Created $output_file" | |
done | |
magick "${base}-sunsplode/frame_*.png" -delay 0 -loop 0 "${output}" | |
rm -rf "${base}-sunsplode" | |
echo "Created ${output}" |