Vesa-Rauttu-60v_1899Saaristoleiri-Uto-2008_180Japan
2010-04-04italia2005-04_219Kobe,
Japan
2010-04-28Oslo.Norway.2002.summer.034playa06secret_552Kuortti.2010-06-26Need for
umbrella
in Kobe
2011-06-10Kobujutsu
Stadion
2011-12-17
2Jodo-Milano.2008-09_035Nanbudo_Norge2007-12_038Oslo
2010-12-03Oslo
2010-12-04Hannan-ja-Esan-haat.20100822.131652.703Nanbudo_Norge2007-12_211norge5oslo_169Saaristoleiri-Uto-2008_177Jodo-Pori.2010-07-17Wakayama,
Japan
2010-04-20Jikishinkageryu
Naginatajutsu
in Hyogo
Kenritsu
Budokan,
Himeji
2011-05-29Helsinki2005-10-15_16_042
Move your hips

There are few hiking trails in the surroundings of Ljubljana, Slovenia. Some of them have these guided exercise tracks.

Image filtering in PHP 5 with GD extension

PHP includes simple image filtering capabilities provided by the GD extension.

The following filters are available, listed as the PHP constants:

  • IMG_FILTER_NEGATE
  • IMG_FILTER_GRAYSCALE
  • IMG_FILTER_BRIGHTNESS
  • IMG_FILTER_CONTRAST
  • IMG_FILTER_COLORIZE
  • IMG_FILTER_EDGEDETECT
  • IMG_FILTER_EMBOSS
  • IMG_FILTER_GAUSSIAN_BLUR
  • IMG_FILTER_SELECTIVE_BLUR
  • IMG_FILTER_MEAN_REMOVAL
  • IMG_FILTER_SMOOTH

Some of them can be adjusted with additional parameters, such as contrast and smooth.

imagefilter($image_resource, FILTER)

Image resource can be created simply from an existing image by using function such as:

$image_resource = imagecreatefromjpeg("laughing-monkey.jpg");

Next step usually is to output the filtered image. This can be done in two ways by using the same function, print to browser or save to a local file. If you do not define the second parameter, the image will be shown to the browser.

imagejpeg($image_resource, "laughing-monkey-filtered.jpg");

A working example of all the filters is available here, applied to my story image thumbnails.

Time: 31/03/2008 22:01

QR code for paazio.nanbudo.fi