-
Notifications
You must be signed in to change notification settings - Fork 17
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
Brightness/Contrast in Lineart mode #38
Comments
Thanks, since you seem to understand more about images then me, mayber you can find a way to make this work feature as expected, see res/main.js lines 746 through 753 |
Hi, thanks for the reply. I'll have a look at it, sure. My math is a bit For reference: https://www.imagemagick.org/script/command-line-options.php#brightness-contrast The trick will be to make the math work out the same. One other approach I'll brush up best I can and give it a shot. Any math geeks around are On Tue, Nov 22, 2016 at 4:48 AM, GM-Script-Writer-62850 <
|
If you use the editor and edit a line art image do you have this issue?
if this also affects the editor i will need to find a way to detect line art images |
I noticed I was having trouble tweaking brightness and contrast when scanning in Lineart mode. Basically anything below 50% brightness would have no effect and 50% and above would result in a blank white image.
Looking at the debug, I realized that it's because the image that the "convert" command is working with is already in black-and-white (aka depth of 1), so it's already a quantized image that has no range to work within to adjust, except to make an all white image.
The solution is to convert the image to grayscale, perform the adjustments, and convert it back to black and white.
Here is what I've done on my server, and I hope it's useful for you...
Starting on line 1307 of current version of index.php, I changed to the following:
The text was updated successfully, but these errors were encountered: