This repository is used to supply (royalty-free) images to OSRD for default operational study project images.
Check out: OSRD primary repository stack.
Build osrd-images with an example infrastructure:
docker build -t osrd-images .
Run osrd-images on port 8080
docker run -p -d 8080:80 osrd-images
Test the server response and check that the schema of the json file image_path.json
matches the structure of the src folder
curl https://localhost:8080/image_path.json
To add new image categories, you must :
- Add a new folder named after the category in the
/src
folder. - Add an image representing the category (
category.png
orcategory.jpeg
or category.jpg) with its.license
file in the/src
folder. - Add the images in each category with their
.license
files
Added images must have a 3:2 aspect ratio.
For the moment, the dimensions and sizes accepted are those shown in the image below.
The recommended format is medium.
Send an email at [email protected], open an issue, or join the #public-general:osrd.fr matrix channel.
OSRD is licensed under the GNU Lesser General Public License v3.0, see LICENSE.
Copyright © 2022 The OSRD Contributors