News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Mikko Koppanen's Blog:
Choosing watermark color based on the background luminosity
October 13, 2007 @ 16:04:00

Mikko Koppanen has another blog entry posted dealing with image manipulation with PHP and Imagick, this time it's a cool little script that lets you pick your watermark's color based on the image's background luminosity.

Usually images are watermarked using a predefined color (let's say for example "white"). How well does this actually work when you're doing the watermark on a light or even a white image? The answer is simple: not very well.

His example uses the ImagickPixelIterator to check the luminosity of the background and assigns the text a value between black and white according to the background. Complete code with usage and examples of the resulting images are included.

0 comments voice your opinion now!
imagick watermark color background luminosity imagick watermark color background luminosity



PHPit.net:
Image manipulation with PHP & the GD library (Part 2)
August 14, 2006 @ 13:39:51

New on PHPit.net today is part two of their series covering working with images in PHP through the GD graphics library.

In this second part of the "Image manipulation with PHP & the GD library" article series you will learn how to resize images, create thumbnails, watermark images and more.

They start with resizing images, showing how to grab the current size and alter it to modify the output (both in a set and proportional way). With that code in place, they take the next logical step - an automatic thumbnail creator from a file upload. Finally, they show how to help protect your images using a watermark - their example is a "Image by YourWebsite.com" string of text placed on the image.

0 comments voice your opinion now!
image manipulation part2 gd watermark thumbnail resize image manipulation part2 gd watermark thumbnail resize


DevShed:
Dynamic Watermarking with PHP
December 29, 2005 @ 06:38:53

From DevShed today, there's a new tutorial on using the built-in PHP image manipulation functionality (the GD libraries) to dynamically put watermarks on your images.

PHP features a wide array of functions for image handling and manipulation. In today's article, we are going to use those functions to create an image watermarking class. This class will operate on two images: a source image and a watermark. As an optional third parameter our class will also accept an alpha value '" allowing our watermark to contain alpha transparency.

They start off with a brief summary of what the functions are and how the script will work. From there, it's all source code and examples to get the script up and working. In the end, you'll have a script you can call from an img tag in HTML and it will generate the content for you automatically...

0 comments voice your opinion now!
php dynamic watermark gd graphics php dynamic watermark gd graphics



Community Events











Don't see your event here?
Let us know!


package cakephp release application book zendframework example conference security PEAR job framework ajax mysql database developer releases PHP5 code zend

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework