ciromattia / kcc

KCC (a.k.a. Kindle Comic Converter) is a comic and manga converter for ebook readers.
ISC License
2.59k stars 207 forks source link

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

Open rimuru83 opened 1 month ago

rimuru83 commented 1 month ago

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

**Desktop

axu2 commented 1 month ago

Try setting gamma to 1.0

The Linux appimages are in the download list, flatpak too

@rimuru83

rimuru83 commented 1 month ago

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 commented 1 month ago

Can you upload the original page? @rimuru83

rimuru83 commented 1 month ago

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

04

rimuru83 commented 1 month ago

original page 04

axu2 commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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