Skip to content

Commit

Permalink
(#665) Add tentative JPEGXL support
Browse files Browse the repository at this point in the history
  • Loading branch information
Difegue committed Aug 19, 2022
1 parent 30c7535 commit 56935c2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/LANraragi/Utils/Generic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ sub trim_url {
# Checks if the provided file is an image.
# Uses non-capturing groups (?:) to avoid modifying the incoming argument.
sub is_image {
return $_[0] =~ /^.+\.(?:png|jpg|gif|bmp|jpeg|jfif|webp|avif|heif|heic)$/i;
return $_[0] =~ /^.+\.(?:png|jpg|gif|bmp|jpeg|jfif|webp|avif|heif|heic|jxl|)$/i;
}

# Checks if the provided file is an archive.
Expand Down
2 changes: 1 addition & 1 deletion tools/Documentation/installing-lanraragi/source.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ For information, my personal tests are done using Debian's vendor Perl.
apt-get update
apt-get upgrade -y
apt-get install build-essential make gnupg pkg-config \
cpanminus redis-server libarchive-dev imagemagick webp libssl-dev zlib1g-dev \
cpanminus redis-server libarchive-dev imagemagick webp libssl-dev zlib1g-dev libjxl-dev \
perlmagick ghostscript npm
```

Expand Down
2 changes: 1 addition & 1 deletion tools/build/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# DOCKER-VERSION 0.3.4
FROM alpine:3.14
FROM alpine:3.16
LABEL git="https://github.com/Difegue/LANraragi"

ENV S6_KEEP_ENV 1
Expand Down
2 changes: 1 addition & 1 deletion tools/build/docker/install-everything.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ if [ -f /etc/alpine-release ]; then
if [ "$alpine_version" = "3.12.12" ]; then
apk add nodejs-npm
else # Those packages don't exist on 3.12
apk add nodejs npm s6-overlay s6-overlay-preinit
apk add nodejs npm s6-overlay s6-overlay-preinit libjxl
fi
fi

Expand Down

0 comments on commit 56935c2

Please sign in to comment.