Page 1 of 1

Loading 2 thumbnails with different sizes from same image

Posted: Fri Aug 12, 2005 8:50 am
by kurka666
Hi

If I need to have two thumbnails with different sizes from the same original, what would be the best way:
a) load the largest thumbnail and then copy+resize into the smallest
b) load thumbnail from file twice, once for each size



Thanks

HEK

Posted: Sat Aug 13, 2005 8:31 am
by Ithier
Hi,
It depends if you want quality or speed.
If you want the best quality it is best to use option b (but it is slower as it needs to decompress the file twice), if you want speed the option a is faster.

Another option is to load the file and then make a copy (clone) and then resize both. You will have best quality and it is probably faster than option B because decompressing image is done only once.

You will have to choose between quality and speed and make some test to see what is best for you.

Regards

Ithier

Posted: Mon Aug 15, 2005 7:04 am
by kurka666
Thank you! I'll make some tests with both option a and b, and also test your suggestion.

I'll post the results for your information.

HEK