Top-rated recipes tagged "two"http://code.activestate.com/recipes/tags/two/top/2008-08-12T18:46:40-07:00ActiveState Code RecipesPad images to power-of-two dimensions. (Python) 2008-08-12T18:46:40-07:00Martin Wilsonhttp://code.activestate.com/recipes/users/4166376/http://code.activestate.com/recipes/576416-pad-images-to-power-of-two-dimensions/ <p style="color: grey"> Python recipe 576416 by <a href="/recipes/users/4166376/">Martin Wilson</a> (<a href="/recipes/tags/graphics/">graphics</a>, <a href="/recipes/tags/imaging/">imaging</a>, <a href="/recipes/tags/library/">library</a>, <a href="/recipes/tags/of/">of</a>, <a href="/recipes/tags/opengl/">opengl</a>, <a href="/recipes/tags/pil/">pil</a>, <a href="/recipes/tags/power/">power</a>, <a href="/recipes/tags/power_of_two/">power_of_two</a>, <a href="/recipes/tags/python_imaging_library/">python_imaging_library</a>, <a href="/recipes/tags/two/">two</a>). Revision 4. </p> <p>Pads any amount of images each to power-of-two dimensions, useful for OpenGL programming.</p>