Skip to content

[Feature]: Add a new -P flag to apply a Pixelate filter that reduces image detail by averaging color blocks to create a mosaic effect. #25

@swastijain132005

Description

@swastijain132005

So, what is it about?

Implement a Pixelate filter to give images a mosaic-like appearance by dividing the image into small square blocks and replacing each block with its average color.
This filter will help simulate retro or privacy blur effects and can be useful for artistic or data-hiding purposes.

Tasks:

Add a new function apply_pixelate() in helpers.c and declare it in helpers.h.

Implement logic to process the image in small pixel blocks (e.g., 5x5 or adjustable block size).

Add command-line support with the flag -P in filter.c.

Update README.md with filter description and usage example.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions