Added two options :
- Find dupilcates
- Sort
*** Find Duplicates ***
- File Bits : The program reads the file and computes the SHA2 for all the datas
- Image Bits : The program load the image in memory for creating a bitmap then it retrieves the images bits to compute the SHA2
These options are not similar because a JPEG file and a BMP file will have differents file bits but the same image bits.
*** Sort ***
The image size is the member of
BitmapInfo.bmiHeader.biSizeImage.
The
ratio is computed like this :
((double) _dwImageWidth) / ((double) _dwImageHeight).
The image width is equal to
BitmapInfo.bmiHeader.biWidth.
The imahe height is equal to
BitmapInfo.bmiHeader.biHeight.
The database is created "
IN MEMORY" by the command :
sqlite3_open_v2(":memory:",&hSQLite,SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,NULL)
then it creates the unique table "
Images" like this :
sqlite3_exec(hSQLite,szSQL_CreateTable,NULL,NULL,&_lpszMsg)
Image Width : Sort on the image with only
Image Height : Sort on the image height only
Image Width & Height : Sort ont the image width and for the same width it sorts on the image height
Image Height & With : Sort ont the image height and for the same height it sorts on the image width
Image Ratio : Sort on the image ratio. Useful for finding duplicates.
If images have differents file size but the ratio is equal that helps to find a similar image smaller or bigger
File Bits : Sort on the file datas. Compute SHA2
Image Bits : Sort on the bitmap bits. Compute SHA2
File Bits & Image Bits : Sort on the file datas then sorts on the image datas.
Image Bits & File Bits : Sort on the image datas then sorts on the file datas.
File Size & Image Size : Sort on the file size the for the same file size it sorts on the image size.
Image Size & File Size : Sort on the image size the for the same image size it sorts on the file size.
File Size : Sort on the file size.
Image Size : Sort on the image size (The size of the image in memory)
File Name : Sort the file on the file name
Strict (No Collisions) : Sort on File size
SHA2 and file
KECCAK.