feat: the site's third-round corrections on acceptance, DPI and the final file
Residue and thin strokes can be accepted on ready sheets and loose art, with the consent and its time kept on the order. The resolution rule is 96/200 DPI, and a final file must be a transparent 300 DPI PNG. The art score leaves the customer's cart and buy box (Dropstar, 2026-11-05).
This commit is contained in:
@@ -147,15 +147,27 @@ async function sel(fs){
|
||||
x.leitura.p=p;
|
||||
if(pct-mostrado>=1){ mostrado=pct; x.pct=pct; pintaProgressoFolha(x); }
|
||||
}, md.larg).then(lido=>{
|
||||
if(!lido && md.tall){
|
||||
x.an=null;
|
||||
x.measurementError='Não foi possível conferir este PNG alto. Divida a folha em partes menores antes de pagar.';
|
||||
return;
|
||||
}
|
||||
if(lido && folhas.includes(x)){
|
||||
const cv=lido.cv;
|
||||
x.previewSrc=cv.toDataURL('image/webp',0.85); x.miniSrc=miniatura(cv); x.fotoSrc=miniatura(cv,480,720);
|
||||
try{
|
||||
const an=analisarMapa(lido.mapa);
|
||||
x.an={...an, dpi:md.dpiFolha, fonteDpi:'arquivo', grande:false};
|
||||
}catch(e){}
|
||||
}catch(e){
|
||||
if(md.tall){x.an=null;x.measurementError='Não foi possível conferir este PNG alto. Divida a folha em partes menores antes de pagar.';}
|
||||
}
|
||||
}
|
||||
}).catch(()=>{}).finally(()=>{ x.pct=null; pintaFolha(); marcaResiduos(x); });
|
||||
}).catch(()=>{
|
||||
if(md.tall){
|
||||
x.an=null;
|
||||
x.measurementError='Não foi possível conferir este PNG alto. Divida a folha em partes menores antes de pagar.';
|
||||
}
|
||||
}).finally(()=>{ x.pct=null; pintaFolha(); marcaResiduos(x); });
|
||||
}else if(md && RENDERIZA.test(x.f.name)){
|
||||
carregarImagem(x.f).then(async img=>{
|
||||
if(img){
|
||||
@@ -267,7 +279,8 @@ function analiseDaArte(a){
|
||||
function tracoDaArte(a){
|
||||
if(!a.tracoPx || !(a.cm>0)) return null;
|
||||
const px=Math.max(1,Math.round(a.tracoPx.px*300/dpiDe(a)));
|
||||
return {px, classe:px<=4?'C1':px<=19?'C2':'C3', largos:a.tracoPx.largos, finos:a.tracoPx.finos};
|
||||
return {px, classe:px<=4?'C1':px<=19?'C2':'C3', largos:a.tracoPx.largos, finos:a.tracoPx.finos,
|
||||
proofYFraction:a.tracoPx.proofYFraction};
|
||||
}
|
||||
// A metragem sai do arquivo, nunca do peso em bytes.
|
||||
// imagem → proporção da imagem aplicada à largura do filme
|
||||
|
||||
Reference in New Issue
Block a user