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

Reduce images size #71

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Reduce images size #71

merged 2 commits into from
Oct 3, 2023

Conversation

AurelienRichez
Copy link

@AurelienRichez AurelienRichez commented Sep 27, 2023

I changed the image to webp and reduce their sizes to match the actual size of the place where we show them. I kept them at 500 px wide to account for high DPI screens.

I also changed a bit the css to use max-height. In the current state of things the images are stretched if they don't have the right format.

It seems that webp is supported widely know so it looks like a safe choice, but maybe I'm too optimistic ?

@sonarcloud
Copy link

sonarcloud bot commented Sep 27, 2023

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

@AurelienRichez AurelienRichez marked this pull request as ready for review September 27, 2023 15:33
Copy link

@geoffroybouet geoffroybouet left a comment

Choose a reason for hiding this comment

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

I think it's an excellent idea. Perfect 😀

@wjglerum wjglerum merged commit 4d171aa into main Oct 3, 2023
3 checks passed
@wjglerum wjglerum deleted the reduce-images-size branch October 3, 2023 12:47
wjglerum added a commit that referenced this pull request Oct 4, 2023
* Update sbt to 1.9.2 (#60)

* Update sbt to 1.9.3 (#61)

* Update scala.yml

* Create dependabot.yml

* Bump actions/checkout from 2 to 3 (#63)

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump actions/setup-java from 2 to 3 (#62)

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2 to 3.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update asciidoctorj to 2.5.10 (#53)

* Update sbt to 1.9.4 (#64)

* Bump actions/checkout from 3 to 4 (#65)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update scala-library to 2.13.12 (#66)

* Update sbt to 1.9.5 (#67)

* Update play-json to 2.10.0 (#68)

* Update sbt to 1.9.6 (#69)

* Update play-json to 2.10.1 (#70)

* Reduce images size (#71)

* reduce image size by changing their resolution and using webp

* avoid stretching people

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Lunatech Ops <[email protected]>
Co-authored-by: Willem Jan Glerum <[email protected]>
Co-authored-by: Willem Jan Glerum <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lunatech Ops <[email protected]>
Co-authored-by: Aurélien Richez <[email protected]>
pepite pushed a commit that referenced this pull request Sep 2, 2024
* reduce image size by changing their resolution and using webp

* avoid stretching people
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.

3 participants