Add Fastfetch image generation script and new logos assets

This commit is contained in:
Chris Toph 2025-03-28 17:42:06 -04:00
parent 39dfd4e917
commit 109ae0a128
5 changed files with 53 additions and 13 deletions

View file

@ -0,0 +1,27 @@
#!/usr/bin/env fish
# This script generates a series of images using the chafa command with different symbol combinations.
# I use it for creating Fastfetch txt logos :)
# https://www.imagetools.org/trim usefull for trimming images
if test (count $argv) -eq 0
echo "Usage: gen.fish <file.png>"
exit 1
end
set input_png $argv[1]
set types all none space solid stipple block border diagonal dot quad half hhalf vhalf inverted braille technical geometric ascii wedge wide
set num (count $types)
# Loop through only unique unordered combinations without self pairs.
for i in (seq 1 $num)
set type1 $types[$i]
for j in (seq (math $i + 1) $num)
set type2 $types[$j]
set combination "$type1+$type2"
echo "Creating with type $combination"
chafa -s 24x11 -w 9 --symbols $combination --view-size 24x11 $input_png
# chafa -s 25x12 -w 9 --stretch --symbols $combination --view-size 25x12 $input_png
end
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

View file

@ -0,0 +1,13 @@
[?25l ▄▄▄▄▄ ▄▄▄▄▄ 
▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ 
▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄ 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ 
▄▄▄▄▄ ▄▄▄▄▄ 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ 
▄▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄▄ 
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ 
▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄ 
▄▄▄▄▄ ▄▄▄▄▄ 
[?25h

View file

@ -1,14 +1,14 @@
[?25l ▀▀ 
▂▁▁▂ 
▆▆▆▆ 
▗▘▁▁▝▖ 
▘▀▔▗▖▔▀▝ 
▆ ▗▘▔▀▁▝▘▁▀▔▝▖ ▆ 
▝▞▀▘▁▁▁▁▁▁▁▁▁▁▝▀▞▘ 
▘▀▀▀▀▍▆▀▀▆▊▀▀▀▀▝ 
▘▂▂▂▂▎▅▆▂▂▆▅▊▂▂▂▂▝ 
▗▆▆▆▁▆▆▆▆▆▐▐▆▆▆▆▍▐▆▆▆▖ 
▂▁▋▊ ▎▍▂ 
▆▅▀▘ ▝▀▆ 
[?25h
[?25l ▀▆▔▀▔▔▅▖ 
▗▔▅▀▅▅▖▐▐▔▆▅▖ 
▏▘▋▗▁▁▐▘▘▋▋▗▍▊ 
▎▐▃▃▕▃▊▏▘▘▁▀▘▃▆▀▂ 
▁▂▂▏▃▀▀▔▔▃▁▅▃▅▆▆▆▆▘ 
▘▋▍▝▃▅▅▆▀▆▆▃▅▘▆▖▗▘ 
▋▞▆▐▂▏▀▅▂▀▅▆▁▃▊▀▖▍▖ ▗▋ 
▆▔▘▁▐▁▃▍▆▝▖▅▀▂▊▅▅▃▘▕▖▕▘▊ 
▋▗▊▕▅ ▐▍▆▎▆▀▅▃▊▃▅▘▝▖▆▔▂▃▝
▘▂▂▃▖▊▔▍▃▂▃▀▞▅▆▝▖▀▃▝▗▆ ▆▅
▆▆▆▆▎▂▂▂▅▃▃▀▆▔▔▆▅▃▂▁▘ 
▅▅▅▅▅▆▝▁▀▀▁▂▘ 
[?25h