Cache image files if at all possible and convert them to sixel when -sixel option is specified.
This commit is contained in:
committed by
Tatsuya Kinoshita
parent
9504d18d0a
commit
de942f3abf
2
image.c
2
image.c
@@ -595,7 +595,7 @@ getImage(Image * image, ParsedURL *current, int flag)
|
|||||||
cache->pid = 0;
|
cache->pid = 0;
|
||||||
cache->index = 0;
|
cache->index = 0;
|
||||||
cache->loaded = IMG_FLAG_UNLOADED;
|
cache->loaded = IMG_FLAG_UNLOADED;
|
||||||
if (enable_inline_image) {
|
if (enable_inline_image == 1) {
|
||||||
if (image->width > 0 && image->width % pixel_per_char_i > 0)
|
if (image->width > 0 && image->width % pixel_per_char_i > 0)
|
||||||
image->width += (pixel_per_char_i - image->width % pixel_per_char_i);
|
image->width += (pixel_per_char_i - image->width % pixel_per_char_i);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user