diff --git a/src/ui/screens/import_screen.py b/src/ui/screens/import_screen.py index eb0cbf3..e589b5f 100644 --- a/src/ui/screens/import_screen.py +++ b/src/ui/screens/import_screen.py @@ -46,7 +46,12 @@ class PhotoCard(QFrame): """) self.thumb_btn.clicked.connect(self._edit) - self._pixmap_original = QPixmap(self.path) + # Charger une version réduite (pas l'originale en pleine résolution) + full = QPixmap(self.path) + if not full.isNull() and full.width() > 400: + self._pixmap_original = full.scaledToWidth(400, Qt.TransformationMode.SmoothTransformation) + else: + self._pixmap_original = full self._update_thumbnail() layout.addWidget(self.thumb_btn)