Supprimer GIF, multi-shot en format 10x15cm
- Suppression du mode GIF (gif_maker.py, routes, UI) - Multi-shot (strip/collage) produit maintenant des images 10x15cm (1200x1800px @ 300dpi) pret pour impression sublimation - Recadrage intelligent (crop centre) pour remplir les cellules Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
const TOGGLES_MAP = {
|
||||
'tog-photo-simple': 'photo_simple',
|
||||
'tog-multi-shot': 'multi_shot',
|
||||
'tog-gif': 'gif',
|
||||
'tog-filtres': 'filtres',
|
||||
'tog-overlays': 'overlays',
|
||||
'tog-chroma-key': 'chroma_key',
|
||||
|
||||
@@ -30,7 +30,6 @@ function appliquerConfig() {
|
||||
|
||||
// Visibilite des modes
|
||||
toggleVisible('btn-multi', fonc.multi_shot);
|
||||
toggleVisible('btn-gif', fonc.gif);
|
||||
toggleVisible('btn-imprimer', fonc.impression);
|
||||
toggleVisible('btn-email', fonc.email);
|
||||
toggleVisible('btn-qr', fonc.qr_code);
|
||||
|
||||
@@ -71,7 +71,6 @@ async function lancerCapture() {
|
||||
function getNombrePhotos() {
|
||||
if (modeActuel === 'simple') return 1;
|
||||
if (modeActuel === 'multi') return config.multi_shot?.nombre_photos || 3;
|
||||
if (modeActuel === 'gif') return config.gif?.nombre_frames || 4;
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -109,14 +108,7 @@ async function traiterCapture() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (modeActuel === 'gif') {
|
||||
// Creer le GIF
|
||||
const resultat = await apiPost('/api/gif', { photos: photosSession });
|
||||
if (resultat.nom) {
|
||||
photoFinale = resultat.nom;
|
||||
afficherPreviewPhoto('/data/exports/' + resultat.nom);
|
||||
}
|
||||
} else if (modeActuel === 'multi') {
|
||||
if (modeActuel === 'multi') {
|
||||
// Creer le strip/collage
|
||||
const mode = config.multi_shot?.mode || 'strip';
|
||||
let resultat;
|
||||
|
||||
Reference in New Issue
Block a user