Skip to content

Commit

Permalink
More icons
Browse files Browse the repository at this point in the history
  • Loading branch information
amenk committed Aug 2, 2024
1 parent 3fd8ba6 commit 015c140
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ A type of POI
ChatGPT Prompt:

Please generate a very generic, ethiopian influenced, icon for a generic "<insert POI type here>"
use the colors of green (#27ae60), yellow (#f1c40f) and red (#e74c3c) very small and subtle
use the colors of green (#27ae60), yellow (#f1c40f) and red (#e74c3c) very subtle - without any text in the generated image.

1. Save as .webp (or other image file) file from ChatGPT (dall-E) inside of the places/poi-type folder
2. cd scripts; ./generate-place-logo ../places/poi-type/foobar.webp
3. places/poi-type/media/poi-type.png is generated automatically

## place.yaml

Expand Down
Binary file added places/car-sharing/media/car-sharing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added places/car-shops/media/car-shops.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added places/cinemas/media/cinemas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions scripts/generate-place-logo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

cd `dirname $0`

REALPATH=`realpath $1`
REALPATH=`realpath "$1"`
DIR=`dirname $REALPATH`
BASE=`basename $DIR`

mkdir -p `dirname $1`/media
mkdir -p `dirname "$1"`/media
TARGET=$DIR/media/$BASE.png
echo $TARGET

convert $1 icon.png
convert "$1" icon.png

inkscape icon.svg -o $TARGET
xdg-open $TARGET

0 comments on commit 015c140

Please sign in to comment.