A silmpe script to add image to SVGs created with Gephi.
The script need Beautiful soup 4 to run. Here are the instruction on how to install it.
How to use
- In Gephi, use as label the name of the image
- Export the SVG file using the Preview panel
- Put the python script, the SVG and a folder with the images in the same place
- run the python script:
python replace-with-images.py <input_file.svg> <name_of_images_folder> <upscaling> <output_file_name>
input file: the network exported from Gephi
image folder: path of the folder containing images, starting from the folder containing the script. Default value:
Upscaling: multiplicator for the size of the images (e.g. 2 will double their size). Default value:
Output file name: the name of the output file. Default value:
python replace-with-images.py my-network.svg images/ 4 my-network-with-images
Only the first parameter is compulsory.