Skip to content

Commit

Permalink
Resize images (#512)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Roxedus and github-actions[bot] authored Aug 18, 2024
1 parent 9179ca1 commit eaf8dd8
Show file tree
Hide file tree
Showing 74 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/resize.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Resize images

on:
pull_request:
paths:
- "templates/img/**"

jobs:
Resize-images:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Resize images
run: |
docker run -d --rm --name imagemagick -v $(pwd)/templates:/inn -e FOLDER='/inn/img/' -e WIDTH=192 -e HEIGHT=192 ghcr.io/linuxserver/baseimage-alpine:3.19
docker exec imagemagick bash -c 'apk add --no-cache imagemagick && for match in $(find $FOLDER/ -type f \( -iname \*.png \)); do SIZE=$(identify -format "%w-%h" $match); WDT=${SIZE%-*}; HGT=${SIZE#*-}; if (( $WDT > $WIDTH )) || (( $HGT > $HEIGHT )); then convert -define exclude-chunk=tIME $match -resize $WIDTHx$HEIGHT\> $match; fi; done'
docker stop imagemagick
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Automated Resizing of images"
git push
2 changes: 1 addition & 1 deletion .github/workflows/xmllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "templates/*.xml"

jobs:
build:
lint:
runs-on: ubuntu-latest

steps:
Expand Down
Binary file modified templates/img/adminer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/ampache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/anaconda3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/bitwardenrs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/bw_plex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/cadvisor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/chevereto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/cloudflared.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/conreq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/crushftp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/deemix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/dozzle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/draw-io.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/drone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/flaresolverr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/focalboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/forgejo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/graylog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/hexo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed templates/img/hotio-cloudflare.png
Binary file not shown.
Binary file removed templates/img/hotio-hddtemp2influxdb.png
Binary file not shown.
Binary file modified templates/img/hotio-plex.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/huginn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/idrac6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/invoiceninja.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified templates/img/ipfs-kubo.png
Binary file modified templates/img/jenkins.png
Binary file modified templates/img/kdenlive.png
Binary file modified templates/img/komga.png
Binary file modified templates/img/kubek.png
Binary file modified templates/img/lg-connector.png
Binary file modified templates/img/logarr.png
Binary file modified templates/img/mafl.png
Binary file modified templates/img/mango.png
Binary file modified templates/img/mealiev1.png
Binary file modified templates/img/monitorr.png
Binary file modified templates/img/navidrome.png
Binary file modified templates/img/openldap.png
Binary file modified templates/img/overleaf.png
Binary file modified templates/img/paperless.png
Binary file modified templates/img/phpldapadmin.png
Binary file modified templates/img/plex-web.png
Binary file modified templates/img/plex_ldap.png
Binary file modified templates/img/plpp.png
Binary file modified templates/img/prometheus.png
Binary file modified templates/img/radarrsync.png
Binary file modified templates/img/rancher.png
Binary file modified templates/img/red-discordbot.png
Binary file modified templates/img/replex.png
Binary file modified templates/img/requestrr.png
Binary file modified templates/img/seedsync.png
Binary file modified templates/img/seekerr.png
Binary file modified templates/img/shinobi.png
Binary file modified templates/img/sia.png
Binary file modified templates/img/siteinspector.png
Binary file modified templates/img/tdarr.png
Binary file modified templates/img/teddycloud.png
Binary file modified templates/img/themepark.png
Binary file modified templates/img/traccar.png
Binary file modified templates/img/triliumnext.png
Binary file modified templates/img/tuyagateway_logo.png
Binary file modified templates/img/twonky-server.png
Binary file modified templates/img/unifi-poller.png
Binary file modified templates/img/vaultwarden.png
Binary file modified templates/img/wikijs.png
Binary file modified templates/img/wyze.png
Binary file modified templates/img/xbackbone.png
Binary file modified templates/img/xibo.png
Binary file modified templates/img/youtubedl-material.png
Binary file modified templates/img/ytdl-sub.png
Binary file modified templates/img/zigbee2mqtt.png
Binary file modified templates/img/zwavejs2mqtt.png

0 comments on commit eaf8dd8

Please sign in to comment.