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

Convert images to webp and add scripts to keep doing so #189

Merged
merged 13 commits into from
Oct 15, 2024
Merged
  •  
  •  
  •  
53 changes: 53 additions & 0 deletions .github/workflows/check_images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Check Images in PR

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
issues: write
pull-requests: write

jobs:
check-images:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install PyGithub

- name: Run Image Check Script
id: image_check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
run: |
python scripts/webp_conversion/check_images_in_pr.py

- name: Find Comment
uses: peter-evans/find-comment@v3
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: mage files/references

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: ${{ steps.image_check.outputs.comment }}
edit-mode: replace
Binary file added archetypes/authors/avatar.webp
Binary file not shown.
Binary file added assets/images/icon.webp
Binary file not shown.
Binary file added content/OS-developing-world/LMIC.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions content/OS-developing-world/OS-developing-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ subtitle = "A Collection of Practical Guides"
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down Expand Up @@ -91,7 +91,7 @@ This project will collect practical experiences and guidelines related to Open S

<div style="width:600px">

![Placeholder map](LMIC.jpg)
![Placeholder map](LMIC.webp)

***[insert collaboration map here (in-progress)]***

Expand Down
2 changes: 1 addition & 1 deletion content/about/about/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = "text-center"
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/about/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ date_format = "Jan 02, 2006"
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/ambassadorship/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = "text-center"
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/ambassadorship/history.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ date_format = "Jan 02, 2006"
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/community/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = "text-center"
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/community/people.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ subtitle = ""
# gradient_end = "SkyBlue"

# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.

# Text color (true=light or false=dark).
Expand Down
2 changes: 1 addition & 1 deletion content/about/get-involved/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = ""
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/get-involved/calendar.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = "text-center"
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
6 changes: 3 additions & 3 deletions content/about/get-involved/contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ subtitle = "Whether you have questions getting started or you want to know how t
[[feature]]
icon = "envelope"
icon_pack = "fas"
#img = "megaphone.png"
#img = "megaphone.webp"
name = "Email"
description = " [[email protected]](mailto:[email protected])"

[[feature]]
icon = "slack"
icon_pack = "fab"
# img = "teamwork.png"
# img = "teamwork.webp"
name = "Slack"
description = "[Join our open Slack channel](https://join.slack.com/t/forrt/shared_invite/enQtODMwODI0OTk4ODgzLTM0ZTQ3NDk5MzA1ZjBmNWJjYTVlN2Y2YTk0ZTJhYTY5NDliMDYzMjg2MWE0ZDRhOTY0ZDY3OTRlNDA4ODQ3NjQ)"

[[feature]]
icon = "github"
icon_pack = "fab"
# img = "partner.png"
# img = "partner.webp"
name = "GitHub"
description = "[Join our team on GitHub](https://github.com/forrtproject)"

Expand Down
6 changes: 3 additions & 3 deletions content/about/get-involved/get-involved.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ subtitle = """*Join the movement for better education*
# [[feature]]
# #icon = "slack"
# #icon_pack = "fab"
# img = "megaphone.png"
# img = "megaphone.webp"
# name = "Spread the Word"
# description = "Better Education is for everyone. Help us spread the word by joining our [open Slack channel](https://join.slack.com/t/forrt/# shared_invite/enQtODMwODI0OTk4ODgzLTM0ZTQ3NDk5MzA1ZjBmNWJjYTVlN2Y2YTk0ZTJhYTY5NDliMDYzMjg2MWE0ZDRhOTY0ZDY3OTRlNDA4ODQ3NjQ) and invite your friends # and colleagues to be part of our community."
#
# [[feature]]
# # icon = "users"
# # icon_pack = "fas"
# img = "teamwork.png"
# img = "teamwork.webp"
# name = "Join Our Team"
# description = "Everything we develop and produce is in the open. You can join our team [on GitHub](https://github.com/flavioazevedo/FORRT). If you # want to become an active contributors [email us](mailto:[email protected])."
#
# [[feature]]
# # icon = "handshake"
# # icon_pack = "fas"
# img = "partner.png"
# img = "partner.webp"
# name = "Become a Partner"
# description = "We have three different partner levels (Core, Strategic and Institutional) that help us to develop the principles enshrined in # FORRT. If you want to become a partner [email us](mailto:[email protected])."

Expand Down
2 changes: 1 addition & 1 deletion content/about/get-involved/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = ""
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/get-involved/newsletter.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ subtitle = "Subscribe to our newsletter from FORRT to get the latest news about
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/mission/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = ""
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
2 changes: 1 addition & 1 deletion content/about/mission/advocacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ subtitle = ""
# gradient_end = "SkyBlue"

# Background image.
# image = "background.jpg" # Name of image in `static/img/`.
# image = "background.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.

# Text color (true=light or false=dark).
Expand Down
2 changes: 1 addition & 1 deletion content/about/mission/for-students.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ classtitle = ""
# gradient_end = "SkyBlue"

# Background image.
# image = "headers/bubbles-wide.jpg" # Name of image in `static/img/`.
# image = "headers/bubbles-wide.webp" # Name of image in `static/img/`.
# image_darken = 0.6 # Darken the image? Range 0-1 where 0 is transparent and 1 is opaque.
# image_size = "cover" # Options are `cover` (default), `contain`, or `actual` size.
# image_position = "center" # Options include `left`, `center` (default), or `right`.
Expand Down
Binary file added content/about/partnerships/A2P.webp
Binary file not shown.
Binary file added content/about/partnerships/ABRIR.webp
Binary file not shown.
Binary file added content/about/partnerships/AREN.webp
Binary file not shown.
Binary file added content/about/partnerships/BITS.webp
Binary file not shown.
Binary file added content/about/partnerships/CREP.png.webp
Binary file not shown.
Binary file added content/about/partnerships/CREP.webp
Binary file not shown.
Binary file not shown.
Binary file added content/about/partnerships/MD.webp
Binary file not shown.
Binary file added content/about/partnerships/OLS.webp
Binary file not shown.
Binary file added content/about/partnerships/PAPORTRAIL.webp
Binary file not shown.
Binary file added content/about/partnerships/ProjectTier.webp
Binary file not shown.
Binary file added content/about/partnerships/QualaLab.webp
Binary file not shown.
Binary file added content/about/partnerships/RN_German.webp
Binary file not shown.
Binary file added content/about/partnerships/ReplicationWiki.webp
Binary file not shown.
Binary file added content/about/partnerships/SIPS.webp
Binary file not shown.
Binary file added content/about/partnerships/UKRN.webp
Binary file not shown.
Binary file added content/about/partnerships/bitss.webp
Binary file not shown.
Binary file added content/about/partnerships/cos.webp
Binary file not shown.
Binary file not shown.
Binary file added content/about/partnerships/mucos_logo.webp
Binary file not shown.
Binary file added content/about/partnerships/nowherelab.webp
Binary file not shown.
Loading