Howtos
The following examples demonstrate the featues of Asido. For all of those the GD and GD_Hack drivers are used since they are the most common ones and all those examples should run as they are on most machines.
The adjustments that you might have to apply are to set the correct path to the Asido library and probably using a different driver (if the machines does not support the pre-selected GD and GD_Hack, or if you want to test the result from the rest of the drivers).
For starters, here’s a very basic example, which first watermarks an image, and then resizes the result:
<?php /** * Set the path to the Asido library */ include('./../../asido/dev/class.asido.php'); /** * Use the GD driver */ asido::driver('gd'); /** * Create an Asido_Image object */ $i1 = asido::image( 'the-source-image.jpg', 'filename-with-which-you-want-to-save-the-result.png' ); /** * Watermark it */ asido::watermark($i1, 'put-the-watermark-image-here.png'); /** * Resize it proportionally to make it fit inside a 400x400 frame */ asido::resize($i1, 400, 400, ASIDO_RESIZE_PROPORTIONAL); /** * Save it and overwrite the file if it exists */ $i1->save(ASIDO_OVERWRITE_ENABLED); ?>
Check the permissions: make sure that the source file is readable, and the destination file is writable.
More Examples
In the list below you can find other howtos and examples:


