-
Notifications
You must be signed in to change notification settings - Fork 14
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
Gamma or brightness appears wrong after encoding. #11
Comments
@HSGorman Many thanks for reporting! Could you please include a sample image with this problem? |
@HSGorman Could be related to the failure to properly display the logo (file14) in codectest. But it would be good to have the sample as well. |
same here. here is the code i used: |
Happened to me as well. Code:
Original image is PNG, resulting image is way too bright (as shown by IrfanView with the most recent plugins). Tested with package version 3.0, on Windows 10. |
Follow-up: I wasn't able to upload the file, so here is a share link: https://app.box.com/s/t7pi1u8klidvwgzvixgnfwdj163ciosx (file name: testImages.zip). |
Using the following code to convert a jpg to a jp2. When I read the jp2 the image appears too light (brightness or gamma appear to be off). Any ideas?
BitmapImageCreator.Register();
using (var bitmap = (Bitmap)Image.FromFile(@"C:\temp\jp2\llb.jpg"))
{
var enc = J2kImage.ToBytes(bitmap);
File.WriteAllBytes(@"C:\temp\jp2\llb.jp2", enc);
}
The text was updated successfully, but these errors were encountered: