THESE CODES ARE PROVIDED FOR AN EXAMPLE OF HOW TO USE IMAGEMAGICK WITH PHP. CARE SHOULD BE TAKEN WHEN ACCEPTING USER INPUT.
I TAKE NO RESPONSABILTY FOR ANY PROBLEMS THAT MAY OCCURE WHEN USING ANY OF THIS CODE.
IT IS UP TO YOU TO SECURE THE CODE AND VALIDATE USER INPUT.
Code explanation | Result |
---|---|
Note: a 100px x 100px image with a 10x10 border added will be 120px x 120px. |
|
Note: This code is within ( ) which ensures any modifications only take place on this image; the ( ) need escaping with \ |
( Image below showing the actual size and background ) |
|