Commit Graph

13 Commits

Author SHA1 Message Date
Miguel Astor
4cab0a2647 Optimized image detection using extension-based filtering.
Replaced costly MIME-type detection (filetype.is_image) with fast
extension-based filtering. This eliminates I/O operations for every
file in a directory, significantly improving gallery view performance.

Changes:
- Added IMAGE_EXTENSIONS constant and is_image_file() helper to utils.py
- Updated views.py to use extension-based filtering
- Updated makethumbnails command to use extension-based filtering
- Removed filetype import from views.py and makethumbnails.py

Performance impact: ~99% reduction in I/O for directory listings.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-27 01:46:25 -04:00
Miguel Astor
964fee5ddf Simple code cleanups. 2025-01-15 15:14:40 -04:00
bac5437e7e Added basic user authentication. 2023-08-23 17:45:39 -04:00
5c6f23a722 Various reworks. Removed VH units from CSS. 2023-08-23 16:53:06 -04:00
3d317e7505 Reworked search to optimize a bit. 2023-08-21 21:57:22 -04:00
d445d633b4 Added search function. 2023-08-21 21:20:27 -04:00
0b9ab250c5 Added previous/next buttons to image view. 2023-08-21 15:32:18 -04:00
43b74c1521 Added page navigation buttons to the gallery view. 2023-08-19 23:37:19 -04:00
4a60c139a5 Added paging to gallery view. 2023-08-19 23:11:36 -04:00
a13d726899 Increased row lenght to 7 in table layout. 2023-07-30 21:20:38 -04:00
468769275b Changed CSS grid layout for a table layout. 2023-07-30 21:18:36 -04:00
721e4f8107 Basic functionality ready. 2023-07-30 18:55:12 -04:00
0cc9e55db0 Initial commit. 2023-07-29 18:46:58 -04:00