Skip to content

[Feature]: Add PNG and JPEG Image Format Support #36

@indrasuthar07

Description

@indrasuthar07

So, what is it about?

Problem

Currently, Image-Filtering only supports 24-bit BMP files, which limits usability since PNG and JPEG are the most common image formats. Users must convert images to BMP before processing.

Proposed Solution

Add support for PNG and JPEG formats using:

  • libpng for PNG support
  • libjpeg or libjpeg-turbo for JPEG support

Implementation Approach

  1. Auto-detect input format (BMP, PNG, JPEG) via file signatures
  2. Create abstract I/O layer for format-agnostic processing
  3. Convert PNG/JPEG to internal RGB representation for filtering
  4. Write output in same format as input (or allow format specification)
  5. Usage Examples
./filter -g input.png output.png

Code of Conduct

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions