title: how i can put the watermark at the center position of the image?
body: <p>i have 10k images so i'm trying to put the watermark on all the images using Pillow library but watermark position always change as you can see in below images.</p>
  
  <p>i want to put the watermark at the center position of every image and watermark should not be too large and too small from the image, it should be perfect for every image so could you please tell me how i can do it?</p>
  
  <p>this is watermark image:
  <a href="https://i.stack.imgur.com/E1r9X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E1r9X.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/LfL71.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LfL71.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/3HJfZ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3HJfZ.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0ky4a.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0ky4a.jpg" alt="enter image description here"></a></p>
  
  <p>i'm using this code: </p>
  
  <pre><code>from PIL import Image
  import glob
  
  
  def watermark_with_transparency(input_image_path, output_image_path, watermark_image_path, position):
      base_image = Image.open(input_image_path) #open base image
      watermark = Image.open(watermark_image_path) #open water mark
      width, height = base_image.size #getting size of image
  
      transparent = Image.new('RGBA', (width, height), (0,0,0,0))
      transparent.paste(base_image, (0,0))
      transparent.paste(watermark, position, mask=watermark)
      #transparent.show()
      transparent.convert('RGB').save(output_image_path)
      print 'Image Done..!'
  
  
  
  for inputImage in glob.glob('images/*.jpg'):
      output = inputImage.replace('images\\','')
      outputImage = 'watermark images\\'+str(output)
  
      watermark_with_transparency(inputImage, outputImage, 'watermark.png', position=(0,0)) #function
  </code></pre>