Pillow (PIL) Affine Bild transformieren falsche RichtungPython

Python-Programme
Anonymous
 Pillow (PIL) Affine Bild transformieren falsche Richtung

Post by Anonymous »

Pythons PIL -Modul (Python -Kissen) Ich versuche, ein Bild 85 Pixel mit einer affine Transformation nach rechts zu verschieben. Der folgende Code sollte dazu, aber stattdessen verschiebt das Bild scheinbar in die falsche Richtung nach links. Verstehe ich etwas falsch? < /P>

Code: Select all

from PIL import Image
test_image = Image.open('Test image.png')
affine_params = [1, 0, 85, 0, 1, 0]
trans_image = test_image.transform(test_image.size, Image.AFFINE, affine_params, Image.BILINEAR, fillcolor = (150,150,150))
trans_image.save('Transformed image.png')
Eingabebild:
Ausgabebild:

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post