07-06-2011, 04:49 AM
I really love ImageMagick... but it's not really documented for PHP. You really just have to learn it by reading the class reflections and experimenting. This code is not optimal because I really only have a narrow self taught understanding of ImageMagick.
This code demonstrates how to create an image with gradient background, push an existing image as a foreground fill, manipulate font attributes, write to the image, clone an image, set opacity, and how to push a watermark over an image, and output it to the browser.
I used my sig as an example because I really needed a sig, and I was able to demonstrate majority of the core functionality of the Imagick classes that would be used in every day use all in a nice little package of my sig. The only thing really missing is how to thumbnail, and that can be done with a single line of code.
If anyone has any questions as to how the Imagick class itself functions just let me know and I'll try to come up with an answer for you. I'm learning the functionality of this suite of classes by use of PHP Reflection.
Okay, enough rambling, here's the code:
This code demonstrates how to create an image with gradient background, push an existing image as a foreground fill, manipulate font attributes, write to the image, clone an image, set opacity, and how to push a watermark over an image, and output it to the browser.
I used my sig as an example because I really needed a sig, and I was able to demonstrate majority of the core functionality of the Imagick classes that would be used in every day use all in a nice little package of my sig. The only thing really missing is how to thumbnail, and that can be done with a single line of code.
If anyone has any questions as to how the Imagick class itself functions just let me know and I'll try to come up with an answer for you. I'm learning the functionality of this suite of classes by use of PHP Reflection.
Okay, enough rambling, here's the code:
Hidden Content