Skip to content

Conversation

@knarewski-livelink
Copy link
Contributor

Context

At the beginning of image processing, Morandi applies the colour profile and saves the file with a .icc.jpg extension. That file never gets removed and pollutes the disk.

Changes made

  1. (BREAKING) Stop accepting path.icc to set an srgb location; ultimately, colourspace transformation should be performed in memory to make processing faster
  2. (BREAKING) Automatically remove the .icc.jpg file after processing
  3. Adjust the build command to work as expected with buildx

- "--load" flag addresses the following warning:
  No output specified for docker-container driver. Build result will only remain in the build cache. To push result image into registry use --push or to load image into docker use --load
- "buildx" explicitly uses buildx, to respect the builder chosen as default (by docker buildx use <builder_name>)
Long term we intend to perform colour profile adjustment in-memory and leave no leftovers after processing.
…ting garbage

- Vips processor required moving the srgb conversion to a different location, because it only reads source file lazily,
on attempt to write.
- jpgicc leaves empty file on failure (and it happens to fail on grayscale, thus the shared examples are in two places)
@knarewski-livelink knarewski-livelink marked this pull request as ready for review January 12, 2026 16:53
@knarewski-livelink knarewski-livelink requested a review from a team January 12, 2026 16:53
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.

2 participants