mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-14 05:38:01 -05:00
fix: optimize screenshot processing by adjusting image resize and quality settings
This commit is contained in:
parent
f7325272a1
commit
d6f279bfc1
1 changed files with 5 additions and 1 deletions
6
.github/workflows/docker-build-and-push.yml
vendored
6
.github/workflows/docker-build-and-push.yml
vendored
|
@ -1,5 +1,9 @@
|
||||||
name: Build and Push Docker Images
|
name: Build and Push Docker Images
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
contents: read
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -262,7 +266,7 @@ jobs:
|
||||||
for img in *.png; do
|
for img in *.png; do
|
||||||
if [ -f "$img" ]; then
|
if [ -f "$img" ]; then
|
||||||
echo "Processing screenshot for $img"
|
echo "Processing screenshot for $img"
|
||||||
convert "$img" -resize 800x ../processed-screenshots/processed-"$img"
|
convert "$img" -resize 400x -quality 70 -strip ../processed-screenshots/processed-"$img"
|
||||||
BASE64_IMG=$(base64 -w 0 ../processed-screenshots/processed-"$img")
|
BASE64_IMG=$(base64 -w 0 ../processed-screenshots/processed-"$img")
|
||||||
echo "### ${img%.*}" >> ../screenshot-report.md
|
echo "### ${img%.*}" >> ../screenshot-report.md
|
||||||
echo "" >> ../screenshot-report.md
|
echo "" >> ../screenshot-report.md
|
||||||
|
|
Loading…
Reference in a new issue