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
2023-07-30 20:31:34 -04:00
2026-02-27 01:36:25 -04:00
2023-07-29 18:46:58 -04:00
2023-07-30 19:04:15 -04:00
2023-07-30 19:04:15 -04:00
2023-08-23 17:45:39 -04:00
2023-07-30 18:55:12 -04:00

Nibasa Viewer

A basic pure HTML+CSS gallery viewer in the vein of PiGallery 2 but meant to be compatible with somewhat old browsers.

User authentication.

To login a user should be manually created by running the following commands in the Django shell, substituting the user's name, email and password as needed:

from django.contrib.auth.models import User
user = User.objects.create_user('<USERNAME>', '<EMAIL>', '<PASSWORD>')
user.save()
Description
A simple image gallery server written in Django as an old-computer-compatible alternative to PiGallery 2.
Readme 203 KiB
Languages
Python 60.3%
HTML 32.9%
CSS 6.8%