Skip to content
  • Home
  • Code With Michelle
  • About

Luvelle Codes

Talk code to me

Tag: pillow

— Coding —

Python: Resizing Images (Part 2)

January 2, 2015

Suppose you’d like to create thumbnails for your images of a specific size, say 128×128. Because this is a square image, any non-square image will be scaled out of proportion if you simply apply the resize method on it. To maintain aspect ratio for your images, you might like to use the following code: I… Read More Python: Resizing Images (Part 2)

— Coding —

Python: Resizing Images (Part 1)

January 1, 2015

Sometimes you have a buttload of images that you need to resize, but are unwilling to spend the time to do so manually. What to do? Write a script to automate it! Suppose you’d like to resize them by a certain proportion, here’s a code snippet that you can follow: I am currently using Python… Read More Python: Resizing Images (Part 1)




Categories

  • Blog
  • Coding
  • Command Line
  • How-To
  • Problem Solving
  • Teaching

Tags

android studio apache centos 7 coding domain name how-to ios iOS 8 namesilo nsstring objective-c python snippet ssh unix vps wordpress xcode 6
© 2017 Luvelle Codes