Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set image-minimizer to specify image width ... #9471

Merged
merged 4 commits into from Nov 28, 2022

Conversation

goyalyashpal
Copy link
Contributor

@goyalyashpal goyalyashpal commented Nov 26, 2022

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

  • set the width of the image, instead of the height
    see the rationale mentioned in the linked issue

Before/After Screenshots/Screen Record

  • Before:
BEFORE_SET-HEIGHT.vivaldi_O2sZYxLU3D.mp4
  • After:
AFTER_SET-WIDTH.vivaldi_ES6z2h4j6t.mp4

Fixes the following issue(s)

Testing

Due diligence

@goyalyashpal
Copy link
Contributor Author

goyalyashpal commented Nov 26, 2022

I have made the value to result in exactly current behaviour for the default available landscape width, however I do think there's scope of improvement there - as the white landscape image looks so gigantic compared with the full portrait screenshot.

Update: 've added the improvement as Math.min( )

@goyalyashpal goyalyashpal marked this pull request as draft November 26, 2022 21:20
@goyalyashpal goyalyashpal marked this pull request as ready for review November 26, 2022 21:25
@sonarcloud
Copy link

sonarcloud bot commented Nov 26, 2022

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
No Duplication information No Duplication information

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I was wondering whether there was a fix for this, too :-)

@AudricV AudricV added the meta Related to the project but not strictly to code label Nov 27, 2022
@TobiGr TobiGr merged commit 2984649 into TeamNewPipe:dev Nov 28, 2022
@goyalyashpal goyalyashpal deleted the set-width-image-minimizer branch November 28, 2022 16:45
@goyalyashpal
Copy link
Contributor Author

goyalyashpal commented Nov 28, 2022

hey, while testing for these changes in my own repo, i changed the actions settings - but now, i can't remember what the defaults were, so, can u please guide on what i should set these settings to:

image

@Stypox
Copy link
Member

Stypox commented Nov 28, 2022

"Allow all actions", I think

@goyalyashpal
Copy link
Contributor Author

okay! 🤝

@Stypox Stypox mentioned this pull request Jan 22, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Related to the project but not strictly to code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Meta] Image-minimizer wrong behaviour
4 participants