feat: a PNG that records 200 DPI or more offers its own size, Manter, and the Prumo says if it was kept (Rodada 5, A1)

The Site reads the pHYs chunk of a loose art; at 200 DPI or more the
size in the file is the default width and a Manter button sits before
the table sizes (also when the art is turned 90 degrees). The source
carries saved_width_cm and saved_dpi, used only by the Prumo report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-30 11:11:21 -03:00
parent 7e33e6fb1d
commit 7fc091a1bd
8 changed files with 121 additions and 4 deletions

View File

@@ -282,7 +282,8 @@ function pintaPedido(){
// A arte avulsa como fonte da montagem: largura, comprimento, cópias e giro.
const fonteDaArte=x=>({kind:'artwork',width_cm:x.cm,length_cm:+(x.cm*propDe(x)).toFixed(4),
copies:x.q,rotation_degrees:x.giro||0,mirrored:!!x.esp,
measurement:(x.src||x.semPrevia)?'file':'customer'});
measurement:(x.src||x.semPrevia)?'file':'customer',
...(x.cmSalvo?{saved_width_cm:x.cmSalvo,saved_dpi:x.dpiSalvo}:{})});
function carrinho(){
const cob=cobrarMontagem();
const extra=folhaManual()? TAXA_MANUAL : 0;