>Hi Dragan,
>Еxcellent solution.
>Thanks that you share this code.
I hope someone fixes it. I'm using this to build webpages (local, so I can show a bunch of photos, resized to width of 640), and some pictures still come stretched this way or other, which means there are still a lot of cases it doesn't catch.