Merge pull request #2761 from rhafer/backport/no-tiff
[stable/4.0] Backports
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ COPY --from=generate /opencloud /opencloud
|
|||||||
WORKDIR /opencloud/opencloud
|
WORKDIR /opencloud/opencloud
|
||||||
RUN make go-generate build ENABLE_VIPS=true
|
RUN make go-generate build ENABLE_VIPS=true
|
||||||
|
|
||||||
FROM alpine:3.20
|
FROM alpine:3.23
|
||||||
|
|
||||||
RUN apk add --no-cache attr ca-certificates curl mailcap tree vips && \
|
RUN apk add --no-cache attr ca-certificates curl mailcap tree vips && \
|
||||||
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
echo 'hosts: files dns' >| /etc/nsswitch.conf
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM golang:alpine3.22 AS build
|
FROM golang:alpine3.23 AS build
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
@@ -14,7 +14,7 @@ RUN --mount=type=bind,target=/build,rw \
|
|||||||
GOOS="${TARGETOS:-linux}" GOARCH="${TARGETARCH:-amd64}" ; \
|
GOOS="${TARGETOS:-linux}" GOARCH="${TARGETARCH:-amd64}" ; \
|
||||||
make -C opencloud/opencloud release-linux-docker-${TARGETARCH} ENABLE_VIPS=true DIST=/dist
|
make -C opencloud/opencloud release-linux-docker-${TARGETARCH} ENABLE_VIPS=true DIST=/dist
|
||||||
|
|
||||||
FROM alpine:3.22
|
FROM alpine:3.23
|
||||||
ARG VERSION
|
ARG VERSION
|
||||||
ARG REVISION
|
ARG REVISION
|
||||||
ARG TARGETOS
|
ARG TARGETOS
|
||||||
|
|||||||
@@ -2,6 +2,15 @@
|
|||||||
|
|
||||||
package thumbnail
|
package thumbnail
|
||||||
|
|
||||||
|
import "github.com/davidbyttow/govips/v2/vips"
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
// temporary remove TIFF and JP2K from go-vips' list of supported
|
||||||
|
// imagetypes
|
||||||
|
delete(vips.ImageTypes, vips.ImageTypeTIFF)
|
||||||
|
delete(vips.ImageTypes, vips.ImageTypeJP2K)
|
||||||
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// SupportedMimeTypes contains an all mimetypes which are supported by the thumbnailer.
|
// SupportedMimeTypes contains an all mimetypes which are supported by the thumbnailer.
|
||||||
SupportedMimeTypes = map[string]struct{}{
|
SupportedMimeTypes = map[string]struct{}{
|
||||||
@@ -11,7 +20,6 @@ var (
|
|||||||
"image/gif": {},
|
"image/gif": {},
|
||||||
"image/bmp": {},
|
"image/bmp": {},
|
||||||
"image/x-ms-bmp": {},
|
"image/x-ms-bmp": {},
|
||||||
"image/tiff": {},
|
|
||||||
"text/plain": {},
|
"text/plain": {},
|
||||||
"audio/flac": {},
|
"audio/flac": {},
|
||||||
"audio/mpeg": {},
|
"audio/mpeg": {},
|
||||||
|
|||||||
Reference in New Issue
Block a user