feat: preview and check large PNG sheets by reading them as a stream
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 2m33s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m0s
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 2m33s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m0s
A large sheet had no preview and no automatic check of pieces, residue, gaps and background, because decoding it whole would crash the browser. A PNG over 150 MB is now inflated as a stream (DecompressionStream) and unfiltered row by row, keeping every n-th pixel: a 600-pixel-wide copy in about 100 MB of memory whatever the file's size (6.6 s for 500 MB, 22.7 s for 2.4 GB of random pixels, identical to Pillow's output for RGB, RGBA, grey, grey+alpha, palette and 16-bit). The copy is the preview and what the sheet check reads; the grade still comes at once from the header. The preview note promising a server-side re-nesting that does not exist is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1050,7 +1050,6 @@ footer a:hover{color:var(--laranja2)}
|
||||
<span id="vMt">—</span></div>
|
||||
<div id="vArea"></div>
|
||||
<div id="vUso"></div>
|
||||
<p class="montpe">Prévia. O encaixe final é refeito no servidor e nunca sai pior.</p>
|
||||
<div class="compra" id="compra">
|
||||
<div class="aoVivo" id="aoVivo"></div>
|
||||
<div id="compraVals" hidden>
|
||||
|
||||
Reference in New Issue
Block a user