Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] changes the color of images #302

Open
1 task done
ethanneff opened this issue Jan 24, 2025 · 1 comment
Open
1 task done

[Bug] changes the color of images #302

ethanneff opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@ethanneff
Copy link

ethanneff commented Jan 24, 2025

Describe the bug

changes the color of images

before|after

Image

How To Reproduce

example image

Image

example github action

# Image Actions will run in the following scenarios:
# - on Pull Requests containing images (not including forks)
# - on pushing of images to `master` (for forks)
# - on demand
# - at 11 PM every Sunday in anything gets missed with any of the above scenarios
# For Pull Requests, the images are added to the PR.
# For other scenarios, a new PR will be opened if any images are compressed.
name: Compress images
on:
  pull_request:
    paths:
      - '**.jpg'
      - '**.jpeg'
      - '**.png'
      - '**.webp'
  push:
    branches:
      - master
    paths:
      - '**.jpg'
      - '**.jpeg'
      - '**.png'
      - '**.webp'
  workflow_dispatch:
  schedule:
    - cron: '00 23 * * 0'
jobs:
  compressImages:
    name: calibreapp/image-actions
    runs-on: ubuntu-latest
    if: |
      github.event_name != 'pull_request' ||
      github.event.pull_request.head.repo.full_name == github.repository
    steps:
      - name: Checkout Branch
        uses: actions/checkout@v3
      - name: Compress Images
        id: calibre
        uses: calibreapp/image-actions@main
        with:
          githubToken: ${{ secrets.GITHUB_TOKEN }}
          compressOnly: ${{ github.event_name != 'pull_request' }}
      - name: Create Pull Request
        if: |
          github.event_name != 'pull_request' &&
          steps.calibre.outputs.markdown != ''
        uses: peter-evans/create-pull-request@v4
        with:
          title: Auto Compress Images
          branch-suffix: timestamp
          commit-message: Compress Images
          body: ${{ steps.calibre.outputs.markdown }}

Screenshots

Relevant Log Output

Code of Conduct

  • I agree to follow this project’s Code of Conduct
@ethanneff ethanneff added the bug Something isn't working label Jan 24, 2025
@benschwarz
Copy link
Member

Confirming, can see that the background colour is #03CBCF in left, and #00CACF in the right image.

@ethanneff have you inspected if there is a colour profile attached to your original image? afaik image-actions removes image metadata, so (maybe) it's possible that the colour profile is being dropped also 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants