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

Saving screenshot as JPEG only produces garbage #114

Closed
gucki opened this issue Mar 26, 2024 · 1 comment
Closed

Saving screenshot as JPEG only produces garbage #114

gucki opened this issue Mar 26, 2024 · 1 comment

Comments

@gucki
Copy link

gucki commented Mar 26, 2024

This works as expected:

    image
        .save(format!("monitor-{}.png", normalized(monitor.name())))
        .unwrap();

This produces a completely broken JPEG file:

    image
        .save(format!("monitor-{}.jpg", normalized(monitor.name())))
        .unwrap();

I'm crosscompiling from linux to windows using cargo build --target x86_64-pc-windows-gnu.

@nashaofu
Copy link
Owner

nashaofu commented Mar 27, 2024

This should be a bug in crate image,image-rs/image#2188

@gucki gucki closed this as completed Mar 27, 2024
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

No branches or pull requests

2 participants