mirror of
https://github.com/icereed/paperless-gpt.git
synced 2025-03-12 21:08:00 -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
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
@ -262,7 +266,7 @@ jobs:
|
|||
for img in *.png; do
|
||||
if [ -f "$img" ]; then
|
||||
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")
|
||||
echo "### ${img%.*}" >> ../screenshot-report.md
|
||||
echo "" >> ../screenshot-report.md
|
||||
|
|
Loading…
Reference in a new issue