Referred many thumbnail generation algorithms, but many were about to crop most of the available screen area, if the image to be thumbnail'ed is not aligned with the image's aspect ratio.
Algorithm that I figured out to save more area of the original image is:
Assume the thumbnail dimension should be x':y'.
1. Load the image and get original width(w) and hieght(h).
2. Scale the image to X:Y, such that:
a. if h > w, Y = h * aspect_ratio, X=w
b. if h < w, X = w * aspect_ratio, Y=h
3. Crop the scaled image to x':y' calculating the area from center of the picture.
GdkPixbuf functions used for implementing this algorithms are:
How The European Tech Ecosystem Is Shaping Up - [image: Building the European Tech Hubs-2] A group of important ecosystem builders took the stage at Disrupt Europe to give us a picture of the European te...
13 minutes ago