Page 1 of 1

Picture Search, thumbnails named as .png

Posted: 06 Jan 2024, 04:11
by therube
Picture Search, thumbnails named as .png


When you do a Picture search, thumbnails as named as *.png.
But in fact the output thumbs (the actual files) are *.bmp.

Is there a particular reason for that?
(I only ask because some softwares notify you of such discrepancies.)

Re: Picture Search, thumbnails named as .png

Posted: 06 Jan 2024, 07:29
by Administrator
Sorry, i dont understand the problem?

Re: Picture Search, thumbnails named as .png

Posted: 09 Jan 2024, 00:31
by therube
When you do an Search Image
When File Preview is enabled
When you scroll down the list of duplicates

As you come to each duplicate group
Thumbnails are generated (in a place like \temp\GUID...)

Said thumbnails are named *.png

But are actually (physically) .bmp files (not .png files)


IOW, the file extension is incorrect based on what the file actually is.
(Now, granted, this does not affect AllDup's operation in any way.)


Just wondering if there was some reason that the files are named *.png rather then *.bmp?

Re: Picture Search, thumbnails named as .png

Posted: 09 Jan 2024, 14:58
by Administrator
They are named *.png because the thumbnails are created and saved as png picture files.

Re: Picture Search, thumbnails named as .png

Posted: 10 Jan 2024, 03:09
by therube
They are named *.png because the thumbnails are created and saved as png picture files.
That is fine - if they were, but they're not.
AFAICT, they are .bmp.


From a set of AllDup ("temporary") generated ".png" (thumbnail) files (plus a separate .png thrown in for good measure [for file.exe]):

Code: Select all

C:\out>exiftool *.png | grep -i "file type"
File Type                       : BMP
File Type Extension             : bmp
File Type                       : BMP
File Type Extension             : bmp
...
.
AllDup - to png or not to ping.png
.

Code: Select all

C:\out>file.exe -m C:\BIN\UNIX\magic x*

xxx-a-REAL-png.png; PNG image, 800 x 828, 8-bit/color RGB, non-interlaced
xxx.png;            PC bitmap, Windows 3.x format, 200 x 24 x 24

Win7, AllDup Portable, aHash algorithm.

Re: Picture Search, thumbnails named as .png

Posted: 10 Jan 2024, 07:50
by Administrator
I have found the error in the code. The problem will be fixed with the next update. Many thanks for the tip!