~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to doc/bazaar/write-sizes

  • Committer: David Allouche
  • Date: 2006-02-17 00:49:50 UTC
  • mfrom: (0.2.9 bzr-launchpad)
  • mto: This revision was merged to the branch mainline in revision 3511.
  • Revision ID: david.allouche@canonical.com-20060217004950-d89e0bcbf359575e
merge TheBazaar documentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
 
 
3
import sys
 
4
import os
 
5
import PIL.Image
 
6
 
 
7
output_name = sys.argv[1]
 
8
sources = sys.argv[2:]
 
9
 
 
10
output = open(output_name, 'w')
 
11
 
 
12
for name in sources:
 
13
    image = PIL.Image.open(name)
 
14
    print >> output, '%s %dx%d' % ((name,) + image.size)