Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imagrr

Imagrr is a small self-hosted, read-only photo gallery for XAMPP. Drop images into storage/import; the importer extracts the capture date, removes image metadata by re-encoding the image, and publishes the cleaned JPEG in the gallery.

Requirements

  • XAMPP with PHP 8.1 or newer
  • PHP extensions: gd, exif, and pdo_sqlite
  • Apache serving this folder as its document root

If GD is missing, open C:\xampp\php\php.ini, find ;extension=gd, remove the leading semicolon, save the file, and restart Apache. Confirm it with C:\xampp\php\php.exe -m.

The first importer supports JPEG, PNG, and WebP through GD. HEIC, TIFF, and other camera formats need an ImageMagick/Imagick importer in a later step.

Run it in XAMPP

  1. Put this folder at C:\xampp\htdocs\imagrr.
  2. In C:\xampp\htdocs\imagrr\storage\import, drop photos.
  3. Open a Command Prompt in the project folder and run:
C:\xampp\php\php.exe bin\import.php
  1. Open http://localhost/ in a browser.

The source file is removed after a successful import. Unsupported or invalid files are moved to storage/rejected. Cleaned files are written to storage/photos and the SQLite database is created at storage/app.sqlite.

Automatic importing

Use Windows Task Scheduler to run this command periodically:

C:\xampp\php\php.exe C:\xampp\htdocs\imagrr\bin\import.php

Set the task's working directory to C:\xampp\htdocs\imagrr.

Do not expose storage directly on a public server. Keep Apache's document root at this project only if your Apache configuration blocks direct access to SQLite and the import/rejected folders.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages