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

The image output is Darker than input? Linux problem no Update release yet? #731

Open
rimuru83 opened this issue Aug 12, 2024 · 8 comments

Comments

@rimuru83
Copy link

rimuru83 commented Aug 12, 2024

How to disable automatic Saturation?
LInux release still stuck in 5.6.5? :(

**Desktop

  • OS: Linux
  • Device: Other/ custom size
@axu2
Copy link
Collaborator

axu2 commented Aug 12, 2024

Try setting gamma to 1.0

The Linux appimages are in the download list, flatpak too

@rimuru83

@rimuru83
Copy link
Author

rimuru83 commented Aug 13, 2024

Try setting gamma to 1.0

The Linux appimages are in the download list, flatpak too

@rimuru83

Hi, i already tried it, still thesame even i check the custom gamma. even uncheck the color mode etc. I,m using MX linux. how can i install the latest v6.1? i installed it using flatpak but i got the older one

A

@axu2
Copy link
Collaborator

axu2 commented Aug 13, 2024

Can you upload the original page? @rimuru83

@rimuru83
Copy link
Author

sorry here I mean. the original image is actually darker. I just edited it

04

@rimuru83
Copy link
Author

original page
04

@axu2
Copy link
Collaborator

axu2 commented Aug 13, 2024

Yea, it's the autocontrast feature of kcc.

https://pillow.readthedocs.io/en/stable/reference/ImageOps.html#PIL.ImageOps.autocontrast

Maximize (normalize) image contrast. This function calculates a histogram of the input image (or mask region), removes cutoff percent of the lightest and darkest pixels from the histogram, and remaps the image so that the darkest pixel becomes black (0), and the lightest becomes white (255).

https://github.com/ciromattia/kcc/blob/master/kindlecomicconverter/image.py#L298

Can't be disabled. You can remove that line if you run the python code directly however.

@rimuru83

Have you run flatpak update

Edit: I have noticed that kcc makes it slightly darker even at 1.0. Not sure where in the code that happens. Maybe its the pallete adjustment. Check out the image.py file for hints.

related

@rimuru83
Copy link
Author

thanks yes, i am doing the flatpak update now, I'm actually a newbie on GitHub, but I'm interested in editing the application and removing the auto-contrast feature if possible. I've done similar edits in Android applications before, but I'm still a bit new to Linux and github, haha. I guess I have to do more research then. Thanks!

@axu2
Copy link
Collaborator

axu2 commented Aug 13, 2024

There's an install from source instruction in the readme. It'll need edits since no Linux instructions.

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