Ticket #9523 (closed Bug Report: Won't Fix)
Opened 2 years ago
Last modified 22 months ago
[PATCH] MythGallery hogs cpu when scanning folders with non-image files.
|Reported by:||Lawrence Rust <lvr@…>||Owned by:||beirdo|
|Component:||Plugin - MythGallery||Version:||Master Head|
If I set MythGallery to read images from a folder containing a mix of images and other files then the UI hangs for a long time while it's trying to detect the format of the non-image files. This is a feature of the Qt QImageReader class which outputs many messages of the form:
Cannot decode file /home/...
while it attempts to analyse the format of these files. A solution is to call setAutoDetectImageFormat(false) before calling canRead() so that only files with known image extensions (e.g. .jpeg .gif etc) are tested.
comment:1 Changed 2 years ago by beirdo
- Status changed from new to closed
- Resolution set to Fixed
- Milestone changed from unknown to 0.25
comment:2 Changed 2 years ago by Lawrence Rust
- Resolution changed from Fixed to fixed
comment:3 Changed 2 years ago by paulh
- Status changed from closed to new
- Resolution fixed deleted
comment:4 Changed 22 months ago by wagnerrp
- Status changed from new to assigned
comment:5 Changed 22 months ago by Github
comment:6 Changed 22 months ago by beirdo
- Status changed from assigned to closed
- Resolution set to Won't Fix