This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change this to your base projects path [$WORKON_BASE_DIR/{project1,project2,...}] | |
WORKON_BASE_DIR=/mnt/hgfs | |
# Change this to your relative virtual_env dir (if exists) [$WORKON_BASE_DIR/{project}/$VENV_DIR] | |
VENV_DIR=".env" | |
function workon() { | |
[ -z "$VIRTUAL_ENV" ] || deactivate | |
cd $WORKON_BASE_DIR/$1 && | |
[ -d $VENV_DIR ] && source $VENV_DIR/bin/activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Sorl Thumbnail Engine that accepts background color | |
--------------------------------------------------- | |
Created on Sunday, February 2012 by Yuji Tomita | |
""" | |
from PIL import Image, ImageColor | |
from sorl.thumbnail.engines.pil_engine import Engine | |