Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- import sys
- def new_name(file):
- os.path.splitext(file)
- return '.'.join([os.path.splitext(file)[0],'jpg'])
- files = sys.argv[1:]
- garaka_mala = 1600
- for file in files:
- os.system('convert %s -filter Lanczos -sampling-factor 1x1 -unsharp 1.5x1+0.7+0.02 -quality 95 -resize "%s>" -auto-orient -font ~/.fonts/georgia.ttf -pointsize 28 -gravity southeast -stroke \'#0003\' -fill \'#0001\' -strokewidth 1 -annotate +10+0 \'BlackHalt\' -stroke none -fill \'#fff8\' -annotate +10+0 \'BlackHalt\' %s' % (file, garaka_mala, new_name(file)))
- os.system('mogrify -strip %s' % (new_name(file)))
Advertisement
Add Comment
Please, Sign In to add comment