[libGD] #184 [Task opened] Pixelate filter

[email protected] Thu, 20 Nov 2008 05:04:37 +0100 (CET)
Newsgroups php.gd.bugs
Message-ID <[email protected]>
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Kalle Sommer Nielsen (Kalle) 

Attached to Project - libGD
Summary - Pixelate filter
Task Type - Feature Request
Category - Drawing function
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - 2.0.35
Due in Version - Undecided
Due Date - Undecided
Details - I've converted my pixelate filter from php (as talked to with Pierre about on IRC) to C and would like to contribute it to GD.

The pixelate filter adds an new function called gdImagePixelate. Theres two modes of pixelation included, the basic pixelate filter that colors each pixelate block with the first color it finds in the block, meaning pixel 0x0 of each block. It also includes an "advanced" pixelation mode that seeks through all the pixels in a block and finds the average color which makes the pixelation more smooth.

Attached file contains the function itself, the prototype for gd.h is easy to add. Second attachment includes a simple example for making this function available in the PHP binding of gd, it doesn't include the prototypes ect. for php but if needed I'll create a unified diff.

The pixelation adds a new function called imagepixelate and takes the same arguments as its C equal. If required I can make a diff to make it apart of the imagefilter() function.

Regrads

More information can be found at the following URL:
http://bugs.libgd.org/?do=details&task_id=184

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.