5Fermer7
flankerLe 25/05/2014 à 00:27
bon, finalement, j'ai fait un script tripo
#coding=utf-8 import argparse from wand.image import Image def main(): parser = argparse.ArgumentParser() parser.add_argument('source') parser.add_argument('destination') args = parser.parse_args() with Image(filename=args.source) as src: dst = Image(width=src.width * 2, height=src.height * 2) dst.composite(src, left=0, top=0) src.flip() dst.composite(src, left=0, top=src.height) src.flop() dst.composite(src, left=src.width, top=src.height) src.flip() dst.composite(src, left=src.width, top=0) dst.save(filename=args.destination) if __name__ == '__main__': main()