I think resizing with keeping the aspect ratio is the way to go. The menu pictures we have right now have been created in the same way. Basically something like:
double ratio = 32. / std::max(image_w, image_h); resize(image_w * ratio, image_h * ratio);
« Back to merge proposal
I think resizing with keeping the aspect ratio is the way to go. The menu pictures we have right now have been created in the same way. Basically something like:
double ratio = 32. / std::max(image_w, image_h);
resize(image_w * ratio, image_h * ratio);