[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#87013: marked as done (findimagedupes: extension to -v)

Your message dated Sun, 11 Sep 2005 11:47:06 -0700
with message-id <E1EEWr4-00040z-00@spohr.debian.org>
and subject line Bug#87013: fixed in findimagedupes 0.1.3-6
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 22 Feb 2001 14:04:12 +0000
>From jhnc%stone@newton.cam.ac.uk Thu Feb 22 08:04:12 2001
Return-path: <jhnc%stone@newton.cam.ac.uk>
Received: from newton.newton.cam.ac.uk [::ffff:] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 14VwLr-0003yx-00; Thu, 22 Feb 2001 08:04:11 -0600
Received: from stone.newton.cam.ac.uk (stone.newton.cam.ac.uk [])
	by newton.newton.cam.ac.uk (8.8.8/8.8.8) with ESMTP id OAA05058
	for <submit@bugs.debian.org>; Thu, 22 Feb 2001 14:04:07 GMT
Received: (from jhnc@localhost)
	by stone.newton.cam.ac.uk (8.11.2/8.11.2/Debian 8.11.2-1) id f1ME47707414;
	Thu, 22 Feb 2001 14:04:07 GMT
Date: Thu, 22 Feb 2001 14:04:07 GMT
Message-Id: <200102221404.f1ME47707414@stone.newton.cam.ac.uk>
From: Jonathan H N Chin <jhnc%stone@newton.cam.ac.uk>
Subject: findimagedupes: extension to -v
To: submit@bugs.debian.org
X-Mailer: bug 3.3.9
Delivered-To: submit@bugs.debian.org

Package: findimagedupes
Version: 0.1.3-1
Severity: wishlist

The -v option is rather limited.
Assuming one has found duplicate pairs: (a,b), (a,c)
then if one views (a,b) and deletes a, when one comes to
view (a,c) there will be the problem that a no longer exists.

If one assumes: (a==b) && (a==c) => (b==c)
(which will be more or less true (the matching is fuzzy to start
with)) then one may merge pairs.

eg. (a,b), (a,c), (d,e), (e,f) -> (a,b,c), (d,e,f)

I wrote a script that does this. My perl knowledge is limited but
with a little cleaning up the script may be of some interest to
others and so I include it here. Use by something like:

	findimagedupes -g ... | grep '^Dupes:' | grpdup | sh

It will break if, for example, filenames contain shell magic.

diff -BburN old/grpdup new/grpdup
--- old/grpdup	Thu Jan  1 01:00:00 1970
+++ new/grpdup	Thu Feb 22 12:26:38 2001
@@ -0,0 +1,38 @@
+#!/usr/bin/perl -w
+while (<>) {
+	($a, $b) = (split /::/)[1,2];
+	if (defined $a and defined $b) {
+		if (!defined($ptr{$a}) and !defined($ptr{$b})) {
+			$ptr{$a} = $a;
+			push @{$val{$a}}, $a, $b;
+			$ptr{$b} = $a;
+			$#{$val{$b}} = 0;
+		}
+		elsif (defined($ptr{$a}) and !defined($ptr{$b})) {
+			push @{$val{$ptr{$a}}}, $b;
+			$ptr{$b} = $ptr{$a};
+			$#{$val{$b}} = 0;
+		}
+		elsif (!defined($ptr{$a}) and defined($ptr{$b})) {
+			$ptr{$a} = $ptr{$b};
+			$#{$val{$a}} = 0;
+			push @{$val{$ptr{$b}}}, $a;
+		}
+		elsif ($ptr{$a} ne $ptr{$b}) {
+			push @{$val{$ptr{$a}}}, @{$val{$ptr{$b}}};
+			$ptr{$b} = $ptr{$a};
+			$#{$val{$ptr{$b}}} = 0;
+			# else $val{$a} is $val{$b} already
+		}
+	}
+foreach $k (keys %ptr) {
+	if ($ptr{$k} eq $k) {
+		print "xv \"", join("\" \"", @{$val{$ptr{$k}}}), "\"\n";
+	}
+exit 0;

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux stone 2.2.16int4+usb3 #1 SMP Thu Jul 27 17:18:16 BST 2000 i686 unknown

Versions of the packages findimagedupes depends on:
hi  imagemagick    5.2.9-1        Image manipulation programs.
hi  perl-5.6-base  6              Transitional package.
hi  perlmagick     5.29-4         A perl interface to the libMagick graphics r

Received: (at 87013-close) by bugs.debian.org; 11 Sep 2005 18:50:14 +0000
>From katie@spohr.debian.org Sun Sep 11 11:50:14 2005
Return-path: <katie@spohr.debian.org>
Received: from katie by spohr.debian.org with local (Exim 3.36 1 (Debian))
	id 1EEWr4-00040z-00; Sun, 11 Sep 2005 11:47:06 -0700
From: Andreas Tille <tille@debian.org>
To: 87013-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#87013: fixed in findimagedupes 0.1.3-6
Message-Id: <E1EEWr4-00040z-00@spohr.debian.org>
Sender: Archive Administrator <katie@spohr.debian.org>
Date: Sun, 11 Sep 2005 11:47:06 -0700
Delivered-To: 87013-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 4

Source: findimagedupes
Source-Version: 0.1.3-6

We believe that the bug you reported is fixed in the latest version of
findimagedupes, which is due to be installed in the Debian FTP archive:

  to pool/main/f/findimagedupes/findimagedupes_0.1.3-6.diff.gz
  to pool/main/f/findimagedupes/findimagedupes_0.1.3-6.dsc
  to pool/main/f/findimagedupes/findimagedupes_0.1.3-6_all.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 87013@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Andreas Tille <tille@debian.org> (supplier of updated findimagedupes package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Tue, 14 Jun 2005 15:22:51 +0200
Source: findimagedupes
Binary: findimagedupes
Architecture: source all
Version: 0.1.3-6
Distribution: unstable
Urgency: low
Maintainer: Andreas Tille <tille@debian.org>
Changed-By: Andreas Tille <tille@debian.org>
 findimagedupes - Finds visually similar or duplicate images
Closes: 86994 87013 113871 218699
 findimagedupes (0.1.3-6) unstable; urgency=low
   * New maintainer
     Closes: #218699
   * Standards-Version: 3.6.2 (no changes)
   * dh_installmanpages -> dh_installman
   * README.Debian
   * Added C++ version of comparison routine to examples and made a
     hint in README.Debian what to do
   * Added homepage to long description
   * Applied patch from  Jonathan H N Chin <jhnc%stone@newton.cam.ac.uk>
     (Thanks to Jonathan)
     Closes: #86994
   * Provided example script to enhance finding images which appear three
     times or more. Thanks to Jonathan H N Chin again.
     Closes: #87013
   * Closing old bugs which can not be reproduced any more:
     Closes: #113871 (newer ImageMagic libs seem to work)
 db0a920b9bccb83b6adbd8bd84959090 583 graphics optional findimagedupes_0.1.3-6.dsc
 9de8aa7146824f19c2e68ebf2b1b965d 6701 graphics optional findimagedupes_0.1.3-6.diff.gz
 ad3103d8e0b897cb590a656209f584b9 15502 graphics optional findimagedupes_0.1.3-6_all.deb

Version: GnuPG v1.4.1 (GNU/Linux)


Reply to: