AOSSIE-Org / AOSSIE-Org/PictoPy

BUG:Images skipped silently when thumbnail generation fails

Offen
#843 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
283
Forks
679
Ø Merge
7 T. 2 Std.
Gemergte PRs (30 T.)
3

Beschreibung

### Is there an existing issue for this?

- [x] I have searched the existing issues

### What happened?

Description
When thumbnail generation fails during image processing, images are silently skipped without any user notification. This leads to images missing from the database without the user knowing why

Problem
In the image_util_prepare_image_records function, when image_util_generate_thumbnail() returns False (indicating thumbnail generation failure), the code simply skips adding the image to image_records without logging any warning or error message. The user has no visibility into which images were skipped or why.

Solution
Added explicit warning logging when thumbnail generation fails, so users are informed about skipped images.
### Record

- [x] I agree to follow this project's Code of Conduct

### Checklist before Submitting

- [ ] Have you updated docs for it?
- [ ] Have you added unit tests?
- [ ] Have you made sure unit tests pass?
- [x] Have you made sure code formatting is correct?
- [ ] Do Your changes passes all tests?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.