Also produce a scaled down version of the logo.

This commit is contained in:
Stefan van der Walt
2011-09-16 23:04:43 -07:00
parent 29b37d4e4a
commit 877ca68949
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -4,6 +4,7 @@ logo: green_orange_snake.png snake_logo.svg
inkscape --export-png=scikits_image_logo.png --export-dpi=100 \
--export-area-drawing --export-background-opacity=1 \
snake_logo.svg
python shrink_logo.py
green_orange_snake.png:
python scikits_image_logo.py --no-plot
+16
View File
@@ -0,0 +1,16 @@
from scikits.image import io, transform
s = 0.7
img = io.imread('scikits_image_logo.png')
h, w, c = img.shape
print "\nScaling down logo by %.1fx..." % s
img = transform.homography(img, [[s, 0, 0],
[0, s, 0],
[0, 0, 1]],
output_shape=(int(h*s), int(w*s), 4),
order=3)
io.imsave('scikits_image_logo_small.png', img)