IMG-23: Replace imagemeta with imagedetect (#1483)

* Replace imagemeta with imagedetect

* Removed imagemeta package

* 1 page in the check
This commit is contained in:
Victor Sokolov
2025-08-13 11:49:48 +02:00
committed by GitHub
parent 2236bd8170
commit 09a25f8966
23 changed files with 96 additions and 1458 deletions

View File

@@ -370,8 +370,9 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
})()
downloadOpts := imagedata.DownloadOptions{
Header: imgRequestHeader,
CookieJar: nil,
Header: imgRequestHeader,
CookieJar: nil,
MaxSrcFileSize: po.SecurityOptions.MaxSrcFileSize,
}
if config.CookiePassthrough {
@@ -379,7 +380,7 @@ func handleProcessing(reqID string, rw http.ResponseWriter, r *http.Request) {
checkErr(ctx, "download", err)
}
return imagedata.DownloadAsync(ctx, imageURL, "source image", downloadOpts, po.SecurityOptions)
return imagedata.DownloadAsync(ctx, imageURL, "source image", downloadOpts)
}()
var nmErr imagefetcher.NotModifiedError