~stani/phatch/trunk

« back to all changes in this revision

Viewing changes to phatch/actions/watermark.py

  • Committer: Juho Vepsäläinen
  • Date: 2009-09-15 12:39:56 UTC
  • mfrom: (1294 trunk)
  • mto: This revision was merged to the branch mainline in revision 1306.
  • Revision ID: bebraw@gmail.com-20090915123956-k2ykiqq701aykzo3
Merged with trunk successfully.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    """Adds a watermark to an image."""
36
36
    if image.mode == 'P':
37
37
        image = convert_safe_mode(image)
38
 
    layer = generate_layer(image, mark, method,
 
38
    layer = generate_layer(image.size, mark, method,
39
39
        horizontal_offset, vertical_offset,
40
40
        horizontal_justification, vertical_justification,
41
41
        orientation, opacity)