mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-18 20:04:17 +01:00
fix(imageTransparency): adjust default lower bound for background removal
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
This commit is contained in:
parent
44a5a6b174
commit
8b007049b8
@ -5,7 +5,7 @@ export interface TransparencyOptions {
|
||||
tolerance?: number;
|
||||
}
|
||||
|
||||
const DEFAULT_LOWER_BOUND = { r: 238, g: 238, b: 238 }; // #EEEEEE
|
||||
const DEFAULT_LOWER_BOUND = { r: 200, g: 200, b: 200 };
|
||||
const DEFAULT_UPPER_BOUND = { r: 255, g: 255, b: 255 }; // #FFFFFF
|
||||
|
||||
export async function removeWhiteBackground(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user