Now it's finally time to run the script.
Keep a ruler and the book at hand.
On the command line, go into the directory where the script is (for example, type 'cd /home/yourname/MyBookArtDirectory').
Call the script by entering 'php BookArtGenerator.php'.
Or, if you are running the virtual machine, double-click on the heart icon on the desktop.
The script will now ask some questions.
It will ask
Then it will generate 3 files:
The files will be saved to the directory where you put the script. On the virtual machine, this is the folder linked from the desktop (MyBookArt).
If you run the script again with a picture of the same name, the last two files will be overwritten, so copy them somewhere else or rename them if you want to keep them.