LOSS ISN'T DEAD
Then this script is for you. Use this script to convert any 7 images into loss.
- Python 3
- Pillow module
python lossify.py path_to_config_file
The config file is a json file which holds the options you want to pass
The config file supports these options -
The name of the output file. Defaults to "loss.png"
Comma seperated string of size (width, height) of the output. Defaults to 512,512.
Background color of the output (r,g,b). Defaults to white(255,255,255).
This option must be an array. Each entry in this array corresponds to one image. Each image supports these options:
This option is path to the image file
This specifies the size to which the image will be resized and pasted in the ouput. Defaults to outputSize/2,outputSize/2 for the first one and outputSize/4,outputSize/4 for others.
This specifies the position at which this image will be pasted. For defaults see below
This specifies through which angle the image will be rotated. Defaults to 90 degree clockwise for the last one and 0 for others
This specifies the id of the image. The default ids are - 1st panel: 1 2nd panel top-left: 2a 2nd panel bottom right: 2b 3rd panel top-left: 3a 3rd panel bottom right: 3b 4th panel top-left: 4a 4th panel bottom right: 4b If you omit this property, an id will be assigned based on its index in the images list
This is the default layout of output image