diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 15:01:02 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 15:01:02 +0300 |
commit | c2f382aba86aaebb9806ff1b43c1af69992e9a10 (patch) | |
tree | aee205721fd675926c5e7163eec0dddc448f7813 /cli_util.php | |
parent | 24982a48f570b89e537850dda4a4d1ac33ea919f (diff) |
support dark mode for images with alpha channel
Diffstat (limited to 'cli_util.php')
-rwxr-xr-x | cli_util.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli_util.php b/cli_util.php index 97885ff..0c42bb5 100755 --- a/cli_util.php +++ b/cli_util.php @@ -57,6 +57,14 @@ function posts_html(): void { } } +function posts_images(): void { + $kw = ['include_hidden' => true]; + $posts = posts::getPosts(0, posts::getPostsCount(...$kw), ...$kw); + foreach ($posts as $p) { + $p->updateImagePreviews(true); + } +} + function pages_html(): void { $pages = pages::getAll(); foreach ($pages as $p) { |