Some final tweaking on this.
Have cleaned the code up a bit and added more comments to the new code.
for example calls like this...
Code: Select all
Dim i as ImageStat
i = ImageStat(CurrentFile)
If InStr(i.Type, "image/") = 0 Then
Blash Blah
Has been shrunk down and removed the need for defining an ImageStat variable like this...
Code: Select all
If InStr(ImageStat(CurrentFile).Type, "image/") Then
Blah Blah
I found a few little clean ups like that.
I also took Charlies good advice/tip on making the top image use "Contain" to show the true image dimensions and not stretch it to fit (good call m8

)
I also made it auto shrink all images loaded into PictureBox1 to between 512 and 1024px on load for speed.
(I figured with an ultimate max size of 128x128px it might as well)
It could be reduced further but i found it's fast enough like this.
Compiled it on the latest 3.15 with backward compatibility to 3.8 for best results.
Gonna get back to my other projects now
