<br><div class="gmail_quote">On Fri, Jul 8, 2011 at 8:16 AM, Thomas Jollans <span dir="ltr"><<a href="mailto:t@jollybox.de">t@jollybox.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 07/08/2011 01:29 PM, TheSaint wrote:<br>
> Hello,<br>
><br>
> I came across the problem that Gwenview moves the photo from the camera<br>
> memory by renaming them, but later I forgot which where moved.<br>
> Then I tought about a small script in python, but I stumbled upon my<br>
> ignorance on the way to do that.<br>
><br>
> PIL can find similar pictures. I was thinking to reduce the foto into gray<br>
> scale and resize them to same size, what algorithm should take place?<br>
> Is PIL able to compare 2 images?<br>
><br>
<br>
</div>If Gwenview simply moves/renames the images, is it not enough to compare<br>
the actual files, byte by byte?<br></blockquote><div><br>This'll detect duplicates pretty fast; it often doesn't even need to read a whole file once, while not sacrificing accuracy:<br><br><a href="http://stromberg.dnsalias.org/~dstromberg/equivalence-classes.html">http://stromberg.dnsalias.org/~dstromberg/equivalence-classes.html</a></div>
</div><br>