CDB3-8606 збільшити ліміт, щоб великі зображення (15144x10520 пікселів) теж мініатюризувалися
Пример https://procedure.prozorro.sale/api/thumbnails/public/89d39202800a462c94e4dba71f98b143
🕙[ 14:55:05 ] ➜ curl -v https://procedure.prozorro.sale/api/thumbnails/public/89d39202800a462c94e4dba71f98b143
* Host procedure.prozorro.sale:443 was resolved.
* IPv6: (none)
* IPv4: 54.194.148.242, 54.154.191.243, 52.211.229.217
* Trying 54.194.148.242:443...
* Connected to procedure.prozorro.sale (54.194.148.242) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS
* ALPN: server accepted h2
* Server certificate:
* subject: CN=*.prozorro.sale
* start date: Jul 26 00:00:00 2024 GMT
* expire date: Jul 11 23:59:59 2025 GMT
* subjectAltName: host "procedure.prozorro.sale" matched cert's "*.prozorro.sale"
* issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA
* SSL certificate verify ok.
* Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha384WithRSAEncryption
* Certificate level 2: Public key type RSA (4096/152 Bits/secBits), signed using sha384WithRSAEncryption
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://procedure.prozorro.sale/api/thumbnails/public/89d39202800a462c94e4dba71f98b143
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: procedure.prozorro.sale]
* [HTTP/2] [1] [:path: /api/thumbnails/public/89d39202800a462c94e4dba71f98b143]
* [HTTP/2] [1] [user-agent: curl/8.5.0]
* [HTTP/2] [1] [accept: */*]
> GET /api/thumbnails/public/89d39202800a462c94e4dba71f98b143 HTTP/2
> Host: procedure.prozorro.sale
> User-Agent: curl/8.5.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 302
< date: Tue, 26 Nov 2024 12:55:11 GMT
< content-type: application/json
< content-length: 118
< location: https://procedure.prozorro.sale/api/documents/public/89d39202800a462c94e4dba71f98b143
< x-upstream-response-length: 30178741
< expires: Wed, 26 Nov 2025 12:55:11 GMT
< cache-control: max-age=31536000
< cross-origin-resource-policy: cross-origin
< access-control-allow-origin: *
< timing-allow-origin: *
< x-cache-status: HIT
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< access-control-allow-credentials: true
< access-control-allow-methods: GET, PUT, POST, DELETE, PATCH, OPTIONS
< access-control-allow-headers: DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization
< access-control-max-age: 1728000
<
* Connection #0 to host procedure.prozorro.sale left intact
{"status":"error","code":404,"message":"Input image exceeds pixel limit. Width x height should be less than 71000000"}
kuzmenko-pavel ~ via 🐍 v3.12.3
🕙[ 14:55:11 ] ➜
https://prozorrosale.slack.com/archives/CLMGTLF53/p1732625234800269