Commit Graph
4 Commits
Author SHA1 Message Date
Miguel Astor 6fd2dd3769 Removed filetype from requirements.txt 2026-02-27 01:53:15 -04:00
Miguel AstorandClaude Opus 4.5 078eb25b66 Updated CLAUDE.md to reflect performance optimizations.
Updated documentation to reflect recent changes:
- Changed image detection from MIME-type to extension-based
- Added Performance Optimizations section explaining the change
- Updated Code Patterns to use is_image_file() instead of filetype
- Marked filetype as legacy dependency (no longer actively used)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-27 01:48:13 -04:00
Miguel AstorandClaude Opus 4.5 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 AstorandClaude Opus 4.5 e9307c8fae Added CLAUDE.md documentation file.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-27 01:36:25 -04:00