Skip to content

Instantly share code, notes, and snippets.

@jokoon
jokoon / gist:ed40f69b4aaa821ab6c46c2c774b53af
Last active August 4, 2022 12:50
balancing images to fit inside a printed A3 or A2 paper sheet
# finding the best layout for several images, to reduce empty areas
# image are redimensionned to have either the same height or width
'''
for 1 2 3
(1) (2 3)
(2) (1 3)
#include <iostream>
// GLEW
#define GLEW_STATIC
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>