LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2020, 08:39 AM   #1
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Rep: Reputation: 47
find similar images


I'm using geequie to find 99% similar (internet) images (well, duplicates).
Is there some free software that could try and guess which image is 'original' and which is recoded ?
not in a 'photoshopped' sense, but with images that are almost identical.
resolution is the same, size slightly different.
smaller image should be 'fake' but its not always the case.

thanks.
 
Old 09-13-2020, 09:06 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I'm not sure that would be possible unless original images were to have a standard which certified authenticity.
 
Old 09-13-2020, 09:18 AM   #3
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
but there are tools that detect fake .flac files (ones converted from mp3).
I know it requires some AI, but could it simply select sharper image?
( if no filtering was done, it should mostly work? )


edit:
I don't need anything fancy, just some better way than comparing size.
persumably, such tool would take into account filename, timestamp, exif.

Last edited by qrange; 09-13-2020 at 09:25 AM.
 
Old 09-13-2020, 09:30 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554

Why do you need to know - what's the actual problem you're trying to solve by identifying the original?

 
Old 09-13-2020, 09:35 AM   #5
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
I have some images downloaded from net, like ,um, landscapes... and there are a lot of duplicates. I'd like to keep only only the one that is of 'best quality'. Because internet has a lot of re-coded images. Like if you convert jpg->png->jpg or something.
 
Old 09-13-2020, 09:35 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,240

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
You can use identify (part of ImageMagick) or mediainfo to look at the images' resolution.

For the visual similary: Geeqie uses a custom routine for this.

https://github.com/BestImageViewer/g.../src/similar.c

On the command line, you can use compare to get statistics on how visually similar two images are:

http://www.imagemagick.org/Usage/compare/#statistics
 
Old 09-13-2020, 09:43 AM   #7
qrange
Senior Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable/testing, amd64
Posts: 1,061

Original Poster
Rep: Reputation: 47
thanks, but I need it to tell me which image is objectively better.
I just remembered there are some tests that compares video codecs like HEVC vs AV1.
I need something like that for images.
 
Old 09-13-2020, 09:58 AM   #8
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 998

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
ImageMagick's "compare" program can quantify how similar are two images. The command is:

Code:
compare image1 image2 -metric mse /dev/null
I use this to find photos of the same scene.
Ed
 
1 members found this post helpful.
Old 09-13-2020, 10:27 AM   #9
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,616

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554
Quote:
Originally Posted by qrange View Post
thanks, but I need it to tell me which image is objectively better.
To be objective you need to define "better".

If I take a 6016x4016 image, resize to 1024x684 and apply 10% JPEG compression, it might come out at 400KB.
Or I can send the original through an optimizer and come out with a 1024x684 file which is 200KB and is equal or better image quality to the previous file.
Or I can save the original full size but with 99% JPEG compression and get an 800KB file which is inferior to both of them.

So you can't trust number of pixels, nor can you trust number of bytes.

Maybe there a way to compare JPEG compression level (I think some software adds it to metadata), but this is limited use without knowing if the image has been resized/sharpened before or after, and whether a sharpened image adds or detracts to the image quality depends on the subject.


In summary, I don't know of any objective measurements that will give you a valid judgement without a human's visual input.

I suspect you're stuck with identifying similar images then using your own eyes to pick the best one - but if you do find an automated method I'm interested in knowing about it.

 
1 members found this post helpful.
Old 09-14-2020, 10:33 AM   #10
EricLanux
LQ Newbie
 
Registered: Sep 2020
Posts: 3

Rep: Reputation: Disabled
There are many tool available online to detect duplicate images. Jigsaw from google. But not sure the accurate percentage.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why so complicated? Replace DVD/CD install images with USB images browny_amiga Linux - General 4 09-21-2009 02:08 PM
Application similar to the Vista image print dialogue (multiple images per page) tuxedup Linux - Software 4 09-26-2008 10:06 AM
Span debian CD images into DVD images Christopher2222 General 3 09-01-2008 11:25 AM
C++/SDL: Images moving too slowly. Images loaded once, etc. Why? RHLinuxGUY Programming 2 05-26-2007 05:11 PM
Convert cd images to dvd images rcsuk Debian 2 07-11-2005 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration