Skip to content

themeroller-image: Migrate to ImageMagick 7 with cross-spawn#632

Merged
mgol merged 3 commits intojquery:mainfrom
mgol:imagemagick-7
Mar 10, 2025
Merged

themeroller-image: Migrate to ImageMagick 7 with cross-spawn#632
mgol merged 3 commits intojquery:mainfrom
mgol:imagemagick-7

Conversation

@mgol
Copy link
Member

@mgol mgol commented Mar 7, 2025

Changes:

  • Migrate from ImageMagick 6 used via the gm npm package to ImageMagick 7 used via cross-spawn
  • Upgrade the Dockerfile from node:18-alpine to node:22-alpine

I tested it locally and it seems to work fine. I intend to do another round of testing & comparing the output of before & after before merging.

The current state of the main branch cannot get deployed as the Alpine Docker image installs ImageMagick 7. It took me a while to debug this because of missing logs which I'm trying to address in #631.

@mgol mgol self-assigned this Mar 7, 2025
@mgol mgol added Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels Mar 7, 2025
mgol added 2 commits March 8, 2025 18:11
Changes:
* Migrate from ImageMagick 6 used via the `gm` npm package to ImageMagick 7
  used via `cross-spawn`
* Upgrade the Dockerfile from `node:18-alpine` to `node:22-alpine`
We'll be able to drop this when Ubuntu Plucky is released & available in GitHub
Actions.
Copy link
Member

@timmywil timmywil left a comment

Choose a reason for hiding this comment

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

Makes sense to me

@mgol mgol removed Needs review Discuss in Meeting Reserved for Issues and PRs that anyone would like to discuss in the weekly meeting. labels Mar 10, 2025
@mgol mgol merged commit 3df668f into jquery:main Mar 10, 2025
3 checks passed
@mgol mgol deleted the imagemagick-7 branch March 10, 2025 17:53
@mgol
Copy link
Member Author

mgol commented Mar 10, 2025

I did a local comparison of before & after and there are small difference between images but not really noticeable to the naked eye - mostly up to 1 step in one of the colors on the RGB scale; perhaps some differences in rounding between ImageMagick 6 & 7. I think that's an acceptable divergence.

@mgol
Copy link
Member Author

mgol commented Mar 10, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants