Skip to content

Fixed the issue where compress_to_size damaged files on macOS - #32

Merged
Lymphatus merged 1 commit into
Lymphatus:mainfrom
RhineGST:main
Dec 29, 2025
Merged

Lymphatus merged 1 commit into
Lymphatus:mainfrom
RhineGST:main

Conversation

@RhineGST

Copy link
Copy Markdown
Contributor

Hey, I'm trying to fix caesium-image-compressor in the isuue #369, but I noticed that you have fixed the problem caused by color space. However, there are still some very minor problems. When input_path == output_path, self-copying sometimes has the problem of damaged the file. The test examples are as follows:

Software version

0.20.0

Operating System information

macOS 15.7.3 (24G419)

To Reproduce

  • Copy this picture to the root directory.

  • cargo run --example size -- ./test_img.webp ./test_img.webp

  • The output image is damaged.

@Lymphatus
Lymphatus merged commit ceafa2f into Lymphatus:main Dec 29, 2025
3 checks passed
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