Skip to content

kmanflickr/Duplicate-Photo-Identifier-by-folder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duplicate Photo Identifier

This project contains a prompt and Python script for creating an HTML report of duplicate and unique photo files.

What the Prompt Does

The prompt in duplicate_photo_report_prompt.md asks a coding assistant to review and improve find_duplicates.py.

It describes a task where the script should:

  • Scan a target folder for image files.
  • Calculate a SHA256 hash for each photo.
  • Group photos with matching hashes as exact duplicates.
  • Separate photos that appear only once as unique files.
  • Create an HTML report named duplicate_report.html.

Expected HTML Report

The generated HTML file should contain two tables.

Table 1: Duplicates

This table lists every photo that belongs to a duplicate group.

Columns:

  • Hash Tag number
  • Photo Name
  • Photo Size
  • Folder

Photos with the same file hash should share the same hash tag number.

Table 2: Unique Files

This table lists photos whose hash appears only once.

Columns:

  • Hash Tag number
  • Photo Name
  • Photo Size
  • Folder

Other Prompt Requirements

The prompt also asks that the code:

  • Saves the HTML report in the same folder as find_duplicates.py.
  • Escapes file names and folder paths before writing them into HTML.
  • Formats photo sizes in readable units such as KB, MB, or GB.
  • Shows a clear message if either table has no rows.
  • Keeps the implementation simple and readable.
  • Verifies that the report can be created successfully.

Project Files

  • find_duplicates.py: Python script that scans photos and creates the report.
  • duplicate_report.html: Generated HTML report.
  • duplicate_photo_report_prompt.md: Reusable prompt describing the task.

About

Duplicate Photo Identifier by folder uses python. Completed with agents, hooks, prompt and skill

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages