Code Example


Example 1: create transparent placeholder img

from PIL import Image img = Image.new('RGB', (32,32), color='white') img.save('empty.png') quit()

Example 2: create transparent placeholder img

convert -size 32x32 xc:white empty.jpg

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools