Skip to content

Added support for top right and bottom right TGA orientations#5829

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:tga_orientation
Nov 21, 2021
Merged

Added support for top right and bottom right TGA orientations#5829
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:tga_orientation

Conversation

@radarhere
Copy link
Copy Markdown
Member

Helps #5729

While http://paulbourke.net/dataformats/tga/ states that 'Bit 4' of the 'Image Specification' is 'reserved. Must be set to 0.', page 12 of https://www.dca.fee.unicamp.br/~martino/disciplinas/ea978/tgaffs.pdf states that 'Bit 4 is for left-to-right ordering'.

So this PR allows it to flip a TGA image horizontally.

@radarhere radarhere mentioned this pull request Nov 11, 2021
@hugovk hugovk merged commit c7a9055 into python-pillow:main Nov 21, 2021
@hugovk
Copy link
Copy Markdown
Member

hugovk commented Nov 21, 2021

Thanks! Also a candidate for release notes?

@radarhere radarhere deleted the tga_orientation branch November 21, 2021 21:29
radarhere added a commit to radarhere/Pillow that referenced this pull request Nov 21, 2021
@radarhere
Copy link
Copy Markdown
Member Author

Sure. See #5847

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants