Snippets - Modifications

Snippets index page

NOTE: Most of the IM snippets have been tested on IM version 6.3.5 There may be some differences if you are using the code on other versions.

For more examples check out the examples section of the website

Venetian blind effect - Anthony 17/6/2008

This uses the imagemagick miff which saves the image into the memory and then the Unix "pipe".

  1. <?php  
  2. $cmd " -size 2x4 xc:none -fill black ".
  3. " -draw \"rectangle 0,0 2,1\" miff:- | ".
  4. " composite -dissolve 30% -tile - input.jpg "
  5. exec("convert $cmd output.png"); 
  6. ?> 

For more examples and information check out the main Imagemagick section.

Add borders View

Apply rounded corners to an image View

Convert image to black and white View

Dividing an image View

Improve photos colours View

Pencil sketch View

Polaroid effect View

Transparent gradiant View

Venetian blind effect View