Urgent.News

What's breaking now, across thousands of outlets.

Tech

Finding "Duplicates Through Time"

Finding "Duplicates Through Time": How I Cleaned Up 300GB of Photos Without Losing Quality Lately, I have been playing around with my personal photo and video library (around 300GB of files, spanning 10+ years of memories). I had a specific type of problem: I needed to save space on my SSD, but I did not want to pay any third-party cloud provider for extra storage. To make things trickier, I was…

The challenge of managing a vast personal photo and video library, totaling 300GB and spanning a decade, proved daunting. Space constraints forced the author to seek a solution without resorting to external cloud storage providers or purchasing additional hardware. The compression route, while tempting, risked compromising the quality of precious memories. The author settled on a more selective approach: deleting redundant large files and targeting individual photographs.

A key realization came from a friend's request for a single picture from their New York visit, only to find the author had captured seven nearly identical shots. This prompted the idea of identifying and eliminating duplicate photos taken in quick succession. The author's solution was Siegu, a local tool that finds burst-mode photographs across extensive libraries.

Siegu operates differently from traditional deduplication tools, which rely on exact byte-for-byte comparisons using MD5 or SHA256 hashes. Instead, Siegu considers both temporal proximity and visual similarity. By analyzing EXIF metadata to group photos shot within seconds or milliseconds of each other, and comparing them using perceptual hashes like pHash or dHash, Siegu efficiently identifies duplicates.

This approach reduces unnecessary CPU cycles, focusing only on candidate groups that were actually captured in short bursts. In the next installment, the author will delve into the technical aspects of Siegu's Rust implementation, EXIF metadata extraction, and the perceptual hashing algorithm employed to flag these duplicates.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Why I Built a Real SOC in My Basement

https://byte-x-bit.com/blog/why-i-built-a-real-soc.html Part 0 of a series on building an enterprise-grade Security Operations Center at home — from open-source foundations and custom tooling.

More from Sunday 6 September →