column of transparent pixels
gilbertohasnofb opened this issue · comments
When using your program with the option -a 90
, the first column of pixels is always completely transparent. This is not observed when this argument is not present (i.e. horizontal mode).
Thanks for the issue, I'll (hopefully) take a look at it soon.
Thanks for the quick response! Please let me know if you need more information or if you can't reproduce the issue.
A little more info on this:
When using Python 3+ I cannot reproduce this error.
I get the 'line of blank pixels' using my version of Python 2 ($ python --version: Python 2.7.12
).
Googling around, I can't find any reference to this issue for Python2 with PIL, Image.rotate and not allowing center.
I've attached all the test images in question. For completeness, here is the command to (successfully) rotate the image in Python 3+ without the stray blank line:
$ python3 pixelsort.py -a 90 tt.png -o tt90_p3.png
So, from where I stand:
- QUICK FIX: just use
Python3
- better fix: figure out what's going on with Python2 and make a compatible fix that works for both
Python2
andPython3
Please let me know if I've missed anything. I'm stumbling around with this stuff as I don't have intimate knowledge of Python.
Image | Description |
---|---|
![]() |
Original image |
![]() |
python2 -a 90 tt.png -o tt_p2.png |
![]() |
python3 -a 90 tt.png -o tt_p3.png |
Since python2 has long sunsetted I'm going to close this issue