Skip to content

R35-T032: Add JPG boundary regression checks - #122

Open
suraj-3010 wants to merge 1 commit into
S-AI-Projects:mainfrom
suraj-3010:student/e26b07f1007/R35-T032
Open

suraj-3010 wants to merge 1 commit into
S-AI-Projects:mainfrom
suraj-3010:student/e26b07f1007/R35-T032

Conversation

@suraj-3010

Copy link
Copy Markdown

PR Title

R35-T032: Add PNG To JPG boundary regression checks

Summary

Adds focused boundary coverage and testable conversion helpers for PNG To JPG.

Description

Adds a 1x1 RGBA PNG boundary test and a 100x100 RGB PNG ordinary-input test. It preserves batch conversion behavior and prevents conversion from running when the module is imported.

The changes are as follows:

  • Added a callable convert_png_to_jpg() conversion function.
  • Added a callable convert_all_png() batch function and if __name__ == "__main__" guard.
  • Added 1x1 and 100x100 boundary tests for file creation, dimensions, RGB mode, and JPEG format.
  • Added work/R35-T032/check.py and evidence documentation.

Related issue: #32

Checks

in the repository

  • Made no changes that degrades the functioning of the repository
  • Gave the commit a focused title

in the PR

  • Followed the format of the pull_request_template
  • Made the Pull Request focused on R35-T032
  • Tested the changes with python3 work/R35-T032/check.py — 2 tests passed

Thank You,

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@suraj-3010 suraj-3010 changed the title test(png): add JPG boundary regression checks Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant