Site in read-only mode

This site is now read-only following the release of MyBB 1.8 and the new mods site.

If you are looking for MyBB 1.8 mods please click here to visit the new mods site.

You can continue to download submissions for MyBB 1.6 and earlier here, however new submissions will only be accepted via the new mods site.

Image Filter GD

Image Filter GD is a set of image effects filters that can be applied to a linked image using a MyCode tag.

Version: 1.0
Author: mtjo
Submitted: 24th May 2014
Last Updated: 29th May 2014
Image Filter GD is a set of image effects filters that can be applied to a linked image using a MyCode tag. Transparency is retained for most transparent GIF and PNG images.

Filters:

  • brighten: Lightens a darker image.
  • brush: Adds a slight dabbed, brushed effect to an image.
  • darken: Darkens an overly bright image.
  • edgedetect: Highlights borders between colors on an image. Similar to emboss.
  • emboss: Adds a stamped metal effect to an image.
  • flip: Flips an image vertically.
  • grayscale: Converts color image to black & white.
  • mirror: Produces a mirrored reflection of an image.
  • negative: Produces a photo negative of an image.
  • pixelate: Pixilates an image.
  • sephia: Adds an aged photo effect to an image.
  • sharpen: Sharpens an blurred image.
  • sketch: Adds a sketched, comic book effect to an image.
  • smooth: Slightly blurs an overly sharpened image.


Restrictions:

  • Only supports GIF, PNG and JPG/JPEG images.
  • If using the Image Resizer & Optimizer GD plugin, you must set the Overide dynamic resizing and optimization to On.
  • Only the first frame of animated GIF images is processed. Therefore the image is returned as a static image.


Requirements:

  • PHP 5.4+ with bundled GD
  • fopen wrappers enabled in php.ini


Installation:

1. Unpack the Image Filter GD zip file and upload imagefilter_gd.php and the imagefilterGD folder to in inc/plugins directory.
2. Go to your Admin Plugins Manager and activate Image Filter with GD.
3. Go to your Admin MyCode Manager and create a new MyCode tag. Give it a title and description.
4. Enter the following code as the Regular Expression.

Code:
\[img_filter=(.*?)\](.*?)\[/img_filter\]


5. Enter the following code as the Replacement.

Code:
<img src="http://myboard.com/path/to/inc/plugins/imagefilterGD/image_filter.php?filename_gd=$2&filter_gd=$1&" alt="$2" title="$2" />


6. Enable the MyCode tag. Plugin has no settings. Enable/Disable via the MyCode Manager.

Example MyCode Tag:

Code:
[img_filter=pixelate]http://mysite.com/path/to/image.png[/img_filter]


Filter Examples:

Preview Image 7190

Previews:Preview Image 7188 Preview Image 7187 Preview Image 7184 Preview Image 7189