generated from OPCODE-Open-Spring-Fest/template
-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Labels
Description
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
- Auto-detect input format (BMP, PNG, JPEG) via file signatures
- Create abstract I/O layer for format-agnostic processing
- Convert PNG/JPEG to internal RGB representation for filtering
- Write output in same format as input (or allow format specification)
- Usage Examples
./filter -g input.png output.pngCode of Conduct
- I agree to follow this project's Code of Conduct