Link to home
Start Free TrialLog in
Avatar of k4hvd77
k4hvd77Flag for Germany

asked on

JPGE Images

Hi Experts,

Could anybody tell me how to check if two Images are identically or not? (JPGE )

k4hvd
Avatar of Ivanov_G
Ivanov_G
Flag of Bulgaria image


   uses
      jpeg;

   var
     jpg_file : TJpegImage;

   load the JPG image in this JpegImage and the convert to Bitmap using Bitmap.Assign(JPG_file) method. Now you have 2 Bitmaps which have Canvas propery and you can compare them.

    The other way is to compare the size, the headers, etc. but this don't guarantee you anything.
Avatar of mbprogrammer
mbprogrammer

There are many algorithms for this purpos. it depends on your destination
(I mean your app usage) some of them compares RGB colors. it's a fast and trustable method. they compared the amount of each color not the pixeles and not the position of them. they also after getting the ture result from this test , they will test a little amount of pixels and their positions.
Avatar of k4hvd77

ASKER

mbprogrammer,
I need a fast method! Could you post some codes how to do theat?


k4hvd77
ASKER CERTIFIED SOLUTION
Avatar of mbprogrammer
mbprogrammer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of k4hvd77

ASKER

thank you mbprogrammer ;)


k4hvd77