李通洲
a336145ed9
Image: add fast path for kitty protocol
2022-12-23 12:45:57 +08:00
李通洲
3e607680e2
Image: dont leak memories
2022-12-22 21:47:30 +08:00
李通洲
89347b7bee
Image: add dirty support of iTerm image protocol
...
iTerm image protocol supports most commonly used image formats so we don't need image magick to convert image format.
However, since we don't know anything about the image, `--logo-width` `--logo-height` must be specified to make sure that logo will not be covered by texts.
2022-12-22 21:37:16 +08:00
李通洲
c45ef08926
Image: expose more chafa settings
2022-12-22 11:36:13 +08:00
李通洲
f50b478966
Image: try fixing caching
2022-12-22 02:40:56 +08:00
李通洲
0cacedfc5d
Image: enable Chafa on Windows
...
It's not built by default, as imagemagick requires too many dlls.
2022-12-22 02:07:57 +08:00
李通洲
985fc991e8
Revert "Image: tidy"
...
This reverts commit d21ce9b10f .
2022-12-20 22:44:45 +08:00
李通洲
d21ce9b10f
Image: tidy
2022-12-20 22:37:15 +08:00
李通洲
75341e8172
Image: make it compile on Windows
...
Doesn't work yet.
2022-12-20 11:37:54 +08:00
李通洲
01d2d77efd
Image: fix resource leaks
2022-12-20 11:01:42 +08:00
李通洲
1b2a61ed49
Image: init MagickCore environment before using it
...
I don't know why im6 works without initialization, but im7 doesn't.
2022-12-20 11:01:13 +08:00
李通洲
d4ec500b1b
Image: fix compile error when building with chafa enabled
...
It should be `#include <chafa.h>` because `pkg-config chafa --cflags` prints `-I/usr/include/chafa` even in Linux. It was working because `chafa` folder was installed in the standard `/usr/include` directory, but it was not the case for macOS (brew)
2022-12-19 22:34:29 +08:00
李通洲
eeb008f505
Global: replace all ".so" to FF_LIBRARY_EXTENSION
...
... no matter whether the libraries are linux specific or not
2022-12-17 12:22:11 +08:00
Linus Dierheimer
c242001a77
Fix build without chafa
2022-12-12 13:58:16 +01:00
Linus Dierheimer
3a5af1bbb3
Logo: data source option
...
#345
2022-12-12 13:43:10 +01:00
Linus Dierheimer
98c94b01e5
Some more standard comformance
2022-09-23 11:51:16 +02:00
Linus Dierheimer
381cba2612
Refactor ff_lib_enable
2022-09-19 18:30:00 +02:00
Linus Dierheimer
34b273186a
FF_LIBRARY_LOAD: don't implicit create pointer
2022-09-19 18:00:19 +02:00
李通洲
93ac3f1971
Library: simplify macros
2022-09-12 21:10:05 +08:00
Linus Dierheimer
536f914f3e
Refactor: move printing functions to own header
2022-07-25 13:15:01 +02:00
Linus Dierheimer
4a43144991
Refactor: move io functions to own header
2022-07-25 11:48:48 +02:00
Linus Dierheimer
f18ffe3239
Refactor: move library functions and macros to own header
2022-07-25 11:20:38 +02:00
Linus Dierheimer
da671d6cfe
Start cleaning up of config struct
2022-07-10 18:28:17 +02:00
Linus Dierheimer
c440fdfca8
Uses instance->state.configDirs consistenlty (in particular thread save) troughout the project
2022-06-22 20:14:10 +02:00
Linus Dierheimer
8fa09ca093
Refactored read methods
2022-06-20 16:27:33 +02:00
Linus Dierheimer
6e731c80d0
Refactored write methods
2022-06-19 18:22:00 +02:00
Linus Dierheimer
fe71291769
Clean up includes
2022-06-18 14:25:31 +02:00
Soham Sen
54c09cab18
Fix build if ImageMagick is not installed
2022-06-08 15:22:34 +05:30
Linus Dierheimer
daac1b783c
Refactored logo choosing logic
2022-06-08 10:59:33 +02:00
Linus Dierheimer
caf976bec2
Fix building without chafa enabled
2022-05-23 15:36:19 +02:00
Linus Dierheimer
b3d855355e
Rewrote image dimension calculation
2022-05-23 15:32:10 +02:00
Linus Dierheimer
998691847e
logo-height option
2022-04-30 11:22:51 +02:00
Linus Dierheimer
cc1e876faf
Better automatic logo type detection
2022-04-29 21:44:32 +02:00
Linus Dierheimer
51414c5511
Ascii image output using chafa
2022-04-28 19:15:46 +02:00
Linus Dierheimer
21b315d548
Use a timeout when waiting for terminal responses
2022-04-26 17:17:16 +02:00
Linus Dierheimer
52eed51eb6
Fix prebuild deb package
2022-04-23 11:24:24 +02:00
Linus Dierheimer
e5237c14cb
Fix build without any image magick enabled
2022-04-22 21:29:14 +02:00
Linus Dierheimer
37ab01d5ee
Refactored some variable namings to reflect image support
2022-04-22 15:49:50 +02:00
Linus Dierheimer
80f7a982e0
Even faster image caching
2022-04-22 13:20:40 +02:00
Linus Dierheimer
5bceb29c79
Image caching
2022-04-21 15:50:45 +02:00
Linus Dierheimer
8b153833b1
Fallback to escape sequences if ioctl failed
2022-04-19 11:48:08 +02:00
Linus Dierheimer
6accb587af
zlib support
2022-04-14 15:11:14 +02:00
Linus Dierheimer
373e041e5e
Always dlclose when possible
2022-04-14 11:43:06 +02:00
Linus Dierheimer
31bdd25a26
Kitty graphics protocol support
2022-04-14 11:36:57 +02:00
Linus Dierheimer
703ec597fa
Improved ImageMagick detection
2022-04-13 23:13:25 +02:00
Linus Dierheimer
3b1314102f
Kitty graphics initial support
2022-04-13 23:04:42 +02:00