Skip to content

Reduce image quality to save some space#328

Merged
7h30n3 merged 1 commit intoOPENER-next:masterfrom
a-andre:img_quality
Nov 4, 2025
Merged

Reduce image quality to save some space#328
7h30n3 merged 1 commit intoOPENER-next:masterfrom
a-andre:img_quality

Conversation

@a-andre
Copy link
Contributor

@a-andre a-andre commented Oct 22, 2025

The image quality was reduced by running

magick {}.jpg -quality 60 -resize 2000x2000> {}.webp

The reduced quality is (almost) not visible.
The total size of this directory is reduced from 57 MB to 19 MB.

Consider this an alternative to #68.

@7h30n3 7h30n3 requested a review from Robbendebiene October 24, 2025 11:50
@7h30n3
Copy link
Member

7h30n3 commented Oct 27, 2025

Thank you for the PR. We are looking into using webp instead of jpg to decrease image size even further while maintaining image quality.

@a-andre
Copy link
Contributor Author

a-andre commented Nov 3, 2025

We are looking into using webp instead of jpg to decrease image size even further while maintaining image quality.

All files in assets/question_catalog/images/ have been converted to webp.

@Robbendebiene
Copy link
Member

Thanks for the PR.

I think one new image was added by mistake: assets/question_catalog/images/lift.webp at least it is not used in the definition.json.

@7h30n3
Copy link
Member

7h30n3 commented Nov 4, 2025

It still builds and all tested images are shown.
As soon an the additional image @Robbendebiene mentioned is delete this can be merged.

The image quality was reduced by running
> magick *.jpg -quality 60 -resize 2000x2000\> *.webp

The reduced quality is (almost) not visible.
The total size of this directory is reduced from 57 MB to 18 MB.
Copy link
Member

@Robbendebiene Robbendebiene left a comment

Choose a reason for hiding this comment

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

LGTM 🚈

@7h30n3 7h30n3 merged commit 36277ff into OPENER-next:master Nov 4, 2025
3 checks passed
@a-andre a-andre deleted the img_quality branch November 4, 2025 13:51
7h30n3 pushed a commit that referenced this pull request Nov 11, 2025
The image quality was reduced by running
> magick *.jpg -quality 60 -resize 2000x2000\> *.webp

The reduced quality is (almost) not visible.
The total size of this directory is reduced from 57 MB to 18 MB.
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

Comments