Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Martin Psinas' Blog:
Watermarking with text and ImageMagick
Oct 04, 2011 @ 16:44:35

Martin Psinas has submitted a new tutorial he's written up (complete with sample code) showing how to watermark an image with ImageMagick.

In my most recent venture with PHPMaster I was asked to write an article about watermarking images with PHP using ImageMagick. Virtually no documentation exists on the PHP API, although there are plenty of command-line examples from the official ImageMagick website. I spent a solid day and a half attempting to convert command-line code into PHP before (due to miscommunication) the topic was covered by someone else and my work was no longer needed. Although disappointed, it gave me something to blog about! Yay.

His script is pretty straight forward - it loads a sample image, sets up some watermark text and applies it with a "gravity" setting of "southwest" and adds it to the image (annotateImage). The output is pushed back out as a JPEG image. Also included is a slightly more complex example showing how to give the watermark an embossed look and a "text all over the image" look to prevent use of any part of the image, not just one section.

tagged: watermark text image tutorial imagemagick emboss

Link:

DevShed:
Filtering Image Streams with the GD Library in PHP
Aug 27, 2007 @ 16:25:00

DevShed concludes their series on using the GD graphics libraries in PHP with thie new article focusing on the use of some of the simple filtering functionality the library has to offer.

In this article I'm going to demonstrate how the GD library can be used to apply some basic graphic filters (yes, like Photoshop, but much simpler) by utilizing the versatility of a brand new function called "imagefilter()". As you'll see shortly, with this function it is possible to reverse, blur and highlight the colors of a determined image, as well as convert it to its grayscale version, among other things.

They use the imagefilter function in a few different examples - altering the colors in an image, working with contrast and brightness and various other filters (like smoothing, embossing, blurring and colorizing).

tagged: gd tutorial library filter blur smooth colorize emboss brightness contrast gd tutorial library filter blur smooth colorize emboss brightness contrast

Link:

DevShed:
Filtering Image Streams with the GD Library in PHP
Aug 27, 2007 @ 16:25:00

DevShed concludes their series on using the GD graphics libraries in PHP with thie new article focusing on the use of some of the simple filtering functionality the library has to offer.

In this article I'm going to demonstrate how the GD library can be used to apply some basic graphic filters (yes, like Photoshop, but much simpler) by utilizing the versatility of a brand new function called "imagefilter()". As you'll see shortly, with this function it is possible to reverse, blur and highlight the colors of a determined image, as well as convert it to its grayscale version, among other things.

They use the imagefilter function in a few different examples - altering the colors in an image, working with contrast and brightness and various other filters (like smoothing, embossing, blurring and colorizing).

tagged: gd tutorial library filter blur smooth colorize emboss brightness contrast gd tutorial library filter blur smooth colorize emboss brightness contrast

Link:

Pierre's Blog:
What's new in GD, 5.1.x
Dec 09, 2005 @ 21:07:04

From Pierre's blog today, there's this new post about some of the things that are new for GD in 5.1.x.

I brought image convolutions to the public in PHP 5.1.0 (was lying in cvs for some months already), using a 3x3 matrix, the factor and the offset. A lot of really usefull or nice effects can be realized using image convolutions. I will show you some here.

The second introduction will be available in 5.1.2, it is nothing really new and I was even sure it was already done.

Be sure to check out the post for examples of what can be done with these new, integrated features. The "Gaussian Blur" is very nice...

tagged: graphics image GD gaussian blur emboss graphics image GD gaussian blur emboss

Link:

Pierre's Blog:
What's new in GD, 5.1.x
Dec 09, 2005 @ 21:07:04

From Pierre's blog today, there's this new post about some of the things that are new for GD in 5.1.x.

I brought image convolutions to the public in PHP 5.1.0 (was lying in cvs for some months already), using a 3x3 matrix, the factor and the offset. A lot of really usefull or nice effects can be realized using image convolutions. I will show you some here.

The second introduction will be available in 5.1.2, it is nothing really new and I was even sure it was already done.

Be sure to check out the post for examples of what can be done with these new, integrated features. The "Gaussian Blur" is very nice...

tagged: graphics image GD gaussian blur emboss graphics image GD gaussian blur emboss

Link:


Trending Topics: