45 lines
862 B
Python
45 lines
862 B
Python
#!/usr/bin/python
|
|
# coding: utf-8
|
|
|
|
import sys
|
|
import Image
|
|
|
|
'''
|
|
im1 = Image.open(str(sys.argv[1]))
|
|
width, height = im1.size
|
|
print
|
|
print "width =% 5.2i" % width
|
|
print "height =% 5.2i" % height
|
|
print
|
|
allongement = 8
|
|
im4 = Image.new("RGBA",(im1.size[0]*allongement, im1.size[1]))
|
|
|
|
for x in range(1,allongement+1):
|
|
print('%03.1i' % x)
|
|
'''
|
|
|
|
|
|
index = 1
|
|
allongement = 300 #4818
|
|
|
|
|
|
im1 = Image.open("./drone/img001.jpg")
|
|
im2 = Image.new("RGBA",(im1.size[0]*allongement, im1.size[1]))
|
|
|
|
largeur = im1.size[0]
|
|
|
|
for x in range(0,allongement/10):
|
|
position = 0
|
|
|
|
for y in range(1,11):
|
|
im1 = Image.open("./drone/img%03.1i.jpg" % y)
|
|
im2.paste(im1, (position,0))
|
|
#print position
|
|
#print("./drone/img%03.1i.jpg" % x)
|
|
position = position + largeur
|
|
|
|
scriptpy = str(sys.argv[1])
|
|
script = scriptpy[:-3]
|
|
im2.save(script+"_"+str(x)+".png",'PNG', quality=100)
|
|
|