Sprite Image Build Script Requirements
To run the sprite image build script, Python version 3.6 or higher is required.
Adding an Image Common to All Languages
-
Open the folder:
web-apps/apps/common/main/resources/help/images/srcif the image is used in at least two editors,- or
web-apps/apps/{editor}/main/resources/help/images/srcif the image is used in only one editor:- Place images for button or icon in the
iconsfolder. The image name will correspond to the CSS selector name. - Place larger images in the
bigfolder. - Place symbols in the
symbolsfolder.
- Place images for button or icon in the
-
Launch the terminal (command line).
-
Navigate to the
web-apps/translation/helpfolder using the command:cd path_to_folder- NOTE! [For Windows] If the folder is not on the C drive, switch to another drive using the command
cd Drive_Letter:and then pressEnter(e.g.,cd F:).
- NOTE! [For Windows] If the folder is not on the C drive, switch to another drive using the command
-
Run the script with the command:
python helpsprite.py-
If the command returns an error
ModuleNotFoundError: No module named 'PIL', execute the following in the terminal:- For Windows:
python -m pip install Pillow - For other OS:
python pip install Pillow
- For Windows:
-
If the error
ImportError: cannot import name '_imaging' from 'PIL'...occurs, execute:- For Windows:
python -m pip uninstall Pillow python -m pip install Pillow - For other OS:
python pip uninstall Pillow python pip install Pillow
- For Windows:
-
-
Example of Using an Image from the Sprite To add an image to the page text, insert:
- For images from the
iconsfolder:<div class="icon icon-file_name_without_extension"></div> - For images from the
bigfolder:<div class="big big-file_name_without_extension"></div> - For images from the
symbolsfolder:<div class="smb smb-file_name_without_extension"></div>
- For images from the