To create a license plate, you can use a the following command line (ImageMagick):
I saved it in a file called
create_plate.sh.
Next, grant it execute permissions, with
chmod 755 create_plate.sh.
To call it from PHP:
Notes:
$1.png (in the command line) is the name of an image you want to use for the plate. To create a small image from a larger image, you can use the following command:
In this case, rose: is a built in image. Substitute your image file name for rose. 50x50 refers to the size of the new image, in pixels, and rose.png is the output file name.
$2 is the plate number.
To understand and adjust the other parameters, go to the ImageMagick site: htttp://www.imagemagick.org/Usage/