Fix strip (K60 coupe auto), diagnostic preview, nettoyage
Strip 10x15 : - Envoie la strip simple avec format 10x15-2up (w288h432-div2) le K60 duplique et coupe automatiquement → plus de papier non coupé - Supprime creer_impression_strip et le 2-up manuel avec marges blanches - api/imprimer accepte format_papier depuis le frontend - Frontend stocke formatImpression et le passe à l'impression Diagnostic preview : - GET /api/camera/debug : teste capture_preview(), liste les widgets config gphoto2, état du thread → permet de voir l'erreur exacte Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -85,6 +85,7 @@ wsOnMessage('camera_ok', () => {
|
||||
async function lancerCapture() {
|
||||
photosSession = [];
|
||||
photoImpression = null;
|
||||
formatImpression = null;
|
||||
|
||||
document.getElementById('photo-resultat').src = '';
|
||||
document.getElementById('photo-partage').src = '';
|
||||
@@ -249,7 +250,8 @@ function afficherFlash() {
|
||||
setTimeout(() => flash.classList.add('cache'), 400);
|
||||
}
|
||||
|
||||
let photoImpression = null; // Nom du fichier d'impression (2 bandes sur 10x15)
|
||||
let photoImpression = null; // Fichier à imprimer (strip ou photo finale)
|
||||
let formatImpression = null; // Format CUPS à utiliser (ex: "10x15-2up")
|
||||
|
||||
async function traiterCapture() {
|
||||
if (photosSession.length === 0) {
|
||||
@@ -258,6 +260,7 @@ async function traiterCapture() {
|
||||
}
|
||||
|
||||
photoImpression = null;
|
||||
formatImpression = null;
|
||||
|
||||
try {
|
||||
if (modeActuel === 'multi') {
|
||||
@@ -270,6 +273,7 @@ async function traiterCapture() {
|
||||
return;
|
||||
}
|
||||
if (resultat.impression) photoImpression = resultat.impression;
|
||||
if (resultat.format_impression) formatImpression = resultat.format_impression;
|
||||
} else {
|
||||
resultat = await apiPost('/api/collage', { photos: photosSession });
|
||||
if (resultat.erreur) {
|
||||
|
||||
Reference in New Issue
Block a user