Skip to content

Preserve aspect ratio when downsizing images, add custom scaling factor flag#325

Merged
tylervick merged 6 commits intoXCTestHTMLReport:mainfrom
tylervick:tvick/resize-scaling
May 11, 2023
Merged

Preserve aspect ratio when downsizing images, add custom scaling factor flag#325
tylervick merged 6 commits intoXCTestHTMLReport:mainfrom
tylervick:tvick/resize-scaling

Conversation

@tylervick
Copy link
Copy Markdown
Member

@tylervick tylervick commented May 10, 2023

Hardcoded 200px is generally too small for usability after downsizing. Additionally, there are cases when the maxWidth was exceeded and resulted in a modified aspect ratio (such as iPad landscape).

Changes:

  • Downsize by 0.25 scale by default, preserving aspect ratio
  • Add custom --downsize-scale-factor flag, enabling override of the scale factor

Potentially resolves #293

@tylervick tylervick changed the title resize image to 0.25 size regardless of original width Preserve aspect ratio when downsizing images, add custom scaling factor flag May 11, 2023
@tylervick tylervick merged commit b5c3bd3 into XCTestHTMLReport:main May 11, 2023
@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tylervick tylervick deleted the tvick/resize-scaling branch May 11, 2023 20:30
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.

Low resolution on iPad landscape

1 participant