Skip to content

Commit

Permalink
Make text images for entries without an image
Browse files Browse the repository at this point in the history
Signed-off-by: John Mertic <[email protected]>
  • Loading branch information
jmertic committed Oct 30, 2023
1 parent 0fff682 commit 5c13abb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions maketextimages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
#

while getopts c:l: flag
do
case "${flag}" in
c) crunchbase=${OPTARG};;
l) baselogo=${OPTARG};;
esac
done

IFS=$'\n'
items=( $(ls -ag hosted_logos | grep "9406 Apr 11 16:48") )

for item in "${!items[@]}"
do
replacetext="-rw-r--r--@ 1 staff 9406 Apr 11 16:48 "
logofile=${items[$item]}
logofile=${logofile/$replacetext/}
replacetext='.svg'
logoname=${logofile/$replacetext/}
logofile="hosted_logos/$logofile"
echo -n "Making logo for $logoname..."
echo "<svg><text>$logoname</text></svg>" > text.svg
inkscape text.svg --export-text-to-path --export-plain-svg --export-filename=$logofile --export-area-drawing
echo "DONE"
done

0 comments on commit 5c13abb

Please sign in to comment.