mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 03:25:23 +00:00
fix: Limit image size to 128x128
Reducing the image size to a maximum of 128x128 improves efficiency without any perceptible difference in quality
This commit is contained in:
parent
f7522e261f
commit
3bfe696381
@ -12,8 +12,8 @@ const PIXEL: char = '▀';
|
||||
const FILTER_TYPE: FilterType = FilterType::Lanczos3;
|
||||
|
||||
// use to reduce the size of the image before storing it
|
||||
const CACHED_WIDTH: u32 = 256;
|
||||
const CACHED_HEIGHT: u32 = 256;
|
||||
const CACHED_WIDTH: u32 = 128;
|
||||
const CACHED_HEIGHT: u32 = 128;
|
||||
|
||||
const GRAY: Rgba<u8> = Rgba([242, 242, 242, 255]);
|
||||
const WHITE: Rgba<u8> = Rgba([255, 255, 255, 255]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user