AOSSIE-Org / AOSSIE-Org/PictoPy

BUG:Images skipped silently when thumbnail generation fails

オープン
#843 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
283
フォーク
679
平均マージ
7日 2時間
マージ済み PR(30日)
3

説明

### 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?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。