‘‘Howtos’’ Archive

Watermarks w/ GIFs and JPEGs

сряда, април 25th, 2007

This example shows the result from applying watermark when using non-transparent images like JPEGs, or using files with non-alpha transparency like GIFs.

Pay attention to the JPEG watermark: probably you all know it, but let me put these words of wisdom again – do not use JPEGs and plain flat colors. When the JPEG compression is applied, it tries to smoothen the image and this f*cks up the areas covered with flat color.

save(ASIDO_OVERWRITE_ENABLED);

?> 

Here you can see the source image, the watermark image, and the result:

You can download the source for this example from here:
http://www.asido.info/examples/watermark/example_05.phps

Watermark Scaling w/ Scaling Factor

сряда, април 25th, 2007

There are situations in which it turns out that the watermark image is considerable larger compared to the image that is going to be watermarked. In these scenarios Asido applies watermark scaling. This means that the watermark is resized so its dimensions become some portion of the image that is going to be watermarked. This feature can be turned on and off by using the ASIDO_WATERMARK_SCALABLE_ENABLED and ASIDO_WATERMARK_SCALABLE_DISABLED constants. By default, the featured is enabled, and the scaling factor is taken from the ASIDO_WATERMARK_SCALABLE_FACTOR constant. If you want you can re-define this constant, or just provide a decimal value (0 < scaling_factor < 1) instead. By default, the scaling factor is 0.25 (1/4).

save(ASIDO_OVERWRITE_ENABLED);

?> 

Here you can see the source image, the watermark image, and the result:

 Source Image  Watermark  Result

You can download the source for this example from here:
http://www.asido.info/examples/watermark/example_04.phps

Watermark Scaling

сряда, април 25th, 2007

This example shows how the watermark scaling works: another one of Asido unique features. This feature is turned on by default and it is very handy when the watermark image is considerable larger then the image that is about to be watermarked.

save(ASIDO_OVERWRITE_ENABLED);

?> 

Here you can see the source image, the watermark image, and the result:

 Source Image  Watermark  Result

You can download the source for this example from here:
http://www.asido.info/examples/watermark/example_03.phps

Tile Watermark

сряда, април 25th, 2007

This example demonstrates an unique feature of Asido to apply a tile watermark.

save(ASIDO_OVERWRITE_ENABLED);

?> 

Here you can see the source image, the watermark image, and the result:

 Source Image  Watermark  Result

You can download the source for this example from here:
http://www.asido.info/examples/watermark/example_02.phps

Watermark Gravity

събота, април 21st, 2007

This example demonstrates how to use the watermark gravity. There are nine locations at which you can put the watermark (except when using the tile watermark), and this example puts a watermark on every one of these locations.

save(ASIDO_OVERWRITE_ENABLED);

?> 

Here you can see the source image, the watermark image, and the result:

 Source Image  Watermark  Result

You can download the source for this example from here:
http://www.asido.info/examples/watermark/example_01.phps

Powered by WordPress
Asido: PHP Image Processing Solution