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

Problem converting from PNG to JPEG (without scaling) #538

Closed
aheintz opened this issue Oct 14, 2020 · 3 comments
Closed

Problem converting from PNG to JPEG (without scaling) #538

aheintz opened this issue Oct 14, 2020 · 3 comments

Comments

@aheintz
Copy link

aheintz commented Oct 14, 2020

I'm having an issue with converting PNG image to JPEG (when not scaling), the transparent PNG background gets a weird effect. IF the image is scaled, in any direction, it's not a problem.

Original image: https://s3.eu-north-1.amazonaws.com/media.storm.io/original_png_image.png
Converted image: https://s3.eu-north-1.amazonaws.com/media.storm.io/png_to_jpeg_image.png

I'm using the following:

  • Imageflow.Net version 0.7.6
  • Imageflow.NativeRuntime.osx_10_11-x86-64 1.4.11-rc51

Code used to convert image:

await new ImageJob().BuildCommandString(
                        new StreamSource(input, true),
                        new StreamDestination(output, false),
                        "format=jpeg")
                    .Finish()
                    .InProcessAndDisposeAsync();
@lilith
Copy link
Member

lilith commented Oct 14, 2020

Does this still occur if you set &bgcolor=white in the command string?

@aheintz
Copy link
Author

aheintz commented Oct 14, 2020

Yes, it still occurs using bgcolor=white, I'm currently using f.sharpen=1 as a workaround.

@lilith lilith closed this as completed in 1967ca4 Oct 21, 2020
@lilith
Copy link
Member

lilith commented Oct 21, 2020

This is fixed in main and will be rolled into the next release. Thank you so much for helping us find this!

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