A photo gallery extension for ownCloud Infinite Scale with timeline view, EXIF metadata display, and interactive map.
- Timeline View: Browse photos chronologically with infinite scroll
- Date Grouping: Group photos by day, week, month, or year with pinch-to-zoom
- EXIF Metadata: Display camera info, aperture, ISO, exposure, and location
- Map View: Interactive map showing photos with GPS coordinates using Leaflet
- Photo Stacking: Automatically group burst photos taken within seconds
- Lightbox: Full-size image viewer with swipe navigation and keyboard controls
- oCIS 7.0 or later
- Tika extractor enabled for EXIF metadata extraction
- Search service running for photo indexing
This extension is included in the oCIS ocis_full deployment example. To enable it:
-
Edit
.envand uncomment:EXTENSIONS=:web_extensions/extensions.yml PHOTOADDON=:web_extensions/photo-addon.yml
-
Rebuild:
docker compose up -d
The CSP configuration for OpenStreetMap tiles is automatically included. See the oCIS deployment documentation for full details.
- Download the latest release from the releases page
- Extract to your oCIS web assets directory:
unzip photo-addon-*.zip -d /path/to/ocis/web/assets/apps/ - Restart oCIS or wait for the web service to detect the new extension
The Photo Addon uses Leaflet for the map view, which loads map tiles from OpenStreetMap. To enable the map feature, you must configure the Content Security Policy in your oCIS deployment.
Add the following CSP directives to your oCIS configuration:
# In your ocis.yaml or environment variables
web:
config:
security:
csp:
img-src:
- "'self'"
- "data:"
- "blob:"
- "https://*.tile.openstreetmap.org" # Map tiles
connect-src:
- "'self'"
- "https://*.tile.openstreetmap.org" # Map tile requestsOr via environment variables:
# Add OpenStreetMap tile server to allowed image sources
OCIS_WEB_CONFIG_SECURITY_CSP_IMG_SRC="'self' data: blob: https://*.tile.openstreetmap.org"
OCIS_WEB_CONFIG_SECURITY_CSP_CONNECT_SRC="'self' https://*.tile.openstreetmap.org"Note: Without proper CSP configuration, the map view will display but map tiles will fail to load (you'll see a grey background with markers but no map imagery).
If you cannot modify CSP settings, the calendar/timeline view will still work normally. Only the map view requires external tile loading.
- Navigate to any folder containing images in oCIS
- Click the view switcher icon (top-right of file list)
- Select "Photo View" to activate the photo gallery
- Pinch/Ctrl+Scroll: Zoom in/out to change date grouping (day/week/month/year)
- Arrow Keys: Navigate between photos in lightbox
- Swipe: Navigate photos on touch devices
- Escape: Close lightbox
# Install dependencies
pnpm install
# Development build with watch
pnpm build:w
# Production build
pnpm build
# Type checking
pnpm check:types
# Run tests
pnpm test:unitAGPL-3.0 - see LICENSE for details.