Swati4star / Images-to-PDF

An app to convert images to PDF file!
GNU General Public License v3.0
1.22k stars 813 forks source link

[#1176] PDF Page Orientation based on Image Detection #1184

Open 32299223 opened 1 month ago

32299223 commented 1 month ago

Description

This feature allows users to have a portrait or landscape page depending on the dimensions of their image. This allows images to be much more visible with less whitespace surrounding it.

An example PDF using a portrait, landscape and square image without this feature: An image of three portrait-oriented pages of a PDF file, where the middle page contains a landscape image that is significantly scaled down and surrounded by whitespace

The same PDF with the same images with this feature: An image of three pages of a PDF file, where the middle page is landscape-oriented, thus having its image scaled up to the same quality as the other images in the PDF

Dependencies were also changed to different sources and versions so that the project can run on any Android Studio import. This can be reverted if there have been changes made to this, or perhaps something just happened to go wrong when I tried importing this project myself.

Implements #1176

Type of change

Just put an x in the [] which are valid.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

I also had other people in my team (collaborators on the fork this branch has come from) test this implementation by running the application on their own devices.

Checklist:

codeclimate[bot] commented 1 month ago

Code Climate has analyzed commit 79a28d3c and detected 0 issues on this pull request.

View more on Code Climate.