PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Thursday the 22nd of May, 2014

(Back to #pil overview) (Back to channel listing) (Animate logs)
[09:05:20] <w0rp> What is the briefest way you can resize an image so it fits inside of a rectangle without changing its aspect ratio?
[09:06:54] <w0rp> So if you have 200 x 150 and 256 x 256, it centres inside a 256 x 256 box with white space around it. If it's 300 x 300, it scales down to 256 x 256.
[09:13:59] <w0rp> Hmm, .thumbnail appears to get the scaling right. Now I just need the whitespace with the thumbnail centred.
[09:28:38] <w0rp> I did it by drawing a background image and using the .paste method to move the thumbnail to the centre of it.
[12:38:06] <TeraJL> is there any way to generate an ico image with multiple sizes?
[23:16:01] <travis-ci> [travis-ci] python-imaging/Pillow#1069 (master - cd17b66 : wiredfool): The build passed.
[23:16:01] <travis-ci> [travis-ci] Change view : https://github.com/python-imaging/Pillow/compare/24cb7bf3df66...cd17b6654166
[23:16:01] <travis-ci> [travis-ci] Build details : http://travis-ci.org/python-imaging/Pillow/builds/25831184
[23:20:57] <travis-ci> [travis-ci] python-imaging/Pillow#1070 (master - de28007 : wiredfool): The build passed.
[23:20:57] <travis-ci> [travis-ci] Change view : https://github.com/python-imaging/Pillow/compare/cd17b6654166...de28007585ec
[23:20:57] <travis-ci> [travis-ci] Build details : http://travis-ci.org/python-imaging/Pillow/builds/25831286