SpeciesMapMarkerCLI is a command-line tool that generates map markers with species silhouettes from PhyloPic.
- Fetch species silhouettes from PhyloPic API
- Generate custom map markers with species images
- Normalize species names for accurate searching
- SVG output format for high-quality markers
- Ensure you have Go installed (version 1.21.0 or higher)
- Clone this repository
- Run
go mod tidy
to download dependencies
go run main.go make-marker "species name"
Example:
go run main.go make-marker "Bufo bufo"
This will:
- Download the species silhouette from PhyloPic
- Combine it with a map marker template
- Create new SVG files in the
files
directory:{species_name}_{uuid}.svg
: Original species silhouette{species_name}_marker.svg
: Combined map marker
To build an executable:
go build -o species-map-marker
Then run with:
./species-map-marker make-marker "Bufo bufo"
- Cobra CLI Framework
- golang.org/x/text for text normalization
- gorelease & action