Skip to content

Fix issue #1780 libpng icc profil#1788

Merged
BareosBot merged 2 commits intobareos:masterfrom
bruno-at-bareos:dev/bruno/master/fix-issue-#1780-libpng-wrong-icc-profile
Apr 23, 2024
Merged

Fix issue #1780 libpng icc profil#1788
BareosBot merged 2 commits intobareos:masterfrom
bruno-at-bareos:dev/bruno/master/fix-issue-#1780-libpng-wrong-icc-profile

Conversation

@bruno-at-bareos
Copy link
Contributor

@bruno-at-bareos bruno-at-bareos commented Apr 18, 2024

Use pngcrush to remove any icc profil idat from png

find . -type f -iname '*.png' -exec pngcrush -ow -rem allb -reduce {} \;

We also use other options to minimize the global size.

Fix #1780

Note to reviewer: quality of rendered png should be verified if still acceptable.

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Required backport PRs have been created
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR

@bruno-at-bareos bruno-at-bareos added the bug This addresses a bug label Apr 18, 2024
@bruno-at-bareos bruno-at-bareos added this to the 24.0.0 milestone Apr 18, 2024
@bruno-at-bareos bruno-at-bareos requested a review from sebsura April 18, 2024 14:41
Copy link
Contributor

@sebsura sebsura left a comment

Choose a reason for hiding this comment

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

Looks good to me. I could not spot a difference.

@bruno-at-bareos
Copy link
Contributor Author

bruno-at-bareos commented Apr 23, 2024

As I should avoid changing image resulting in a bigger size (all +%). I've redone those 5 files (added into commit message)

@bruno-at-bareos bruno-at-bareos force-pushed the dev/bruno/master/fix-issue-#1780-libpng-wrong-icc-profile branch from 7f4b7d2 to 82d81c4 Compare April 23, 2024 13:56
bruno-at-bareos and others added 2 commits April 23, 2024 14:16
Use pngcrush to remove any icc profil idat from png

```
find . -type f -iname '*.png' -exec pngcrush -ow -rem allb -reduce {} \;
```
excluded files are the following (resulting in bigger file):
- webui/public/css/32px.png
- webui/public/css/40px.png
- webui/vendor/container-interop/container-interop/docs/images\
  /interoperating_containers.png
- webui/vendor/container-interop/container-interop/docs/images\
  /priority.png
- webui/vendor/container-interop/container-interop/docs/images\
  /side_by_side_containers.png

Signed-off-by: Bruno Friedmann <bruno.friedmann@bareos.com>
@BareosBot BareosBot force-pushed the dev/bruno/master/fix-issue-#1780-libpng-wrong-icc-profile branch from d6e8e84 to 7eb30dd Compare April 23, 2024 14:17
@BareosBot BareosBot merged commit d1cdd7e into bareos:master Apr 23, 2024
@bruno-at-bareos bruno-at-bareos deleted the dev/bruno/master/fix-issue-#1780-libpng-wrong-icc-profile branch November 25, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This addresses a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

traymonitor libpng warning: iCCP: known incorrect sRGB profile

3 participants