• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    PHP
  • License
    GNU General Publi...
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pastebin for your photos

About Mejiro

Mejiro is an easy-to-use PHP web app for instant photo publishing.

Mejiro

The Linux Photography book provides detailed information on installing and using Mejiro. Get your copy at Gumroad.

Features

  • Simplicity Mejiro requires no installation, and it can be deployed on any web server with PHP.
  • Instant and easy photo publishing Upload photos, and Mejiro does the rest.
  • Responsive design Mejiro works well on mobile devices.
  • Pagination Mejiro automatically splits photo collection into pages. You can specify the desired number of photos per page.
  • Basic EXIF data The app extracts and displays basic EXIF info for each photo, including aperture, shutter speed, and ISO.
  • Geo URI links For geotagged photos, Mejiro displays geo URI links you can use to see the exact locations where the photos were taken in the default map application.
  • Optional album description If a description.txt text file exists in the album's folder, Mejiro displays its contents as the album's description.
  • Optional photo description You can add a description to each photo by creating an accompanying .txt file. The app can also read and display descriptions from the photo's UserComment EXIF field.
  • Automatic language detection Mejiro automatically detects the browser language and picks the description text file with the appropriate language prefix.
  • Link to RAW For each photo in the JPEG format, you can upload the accompanying RAW file, and Mejiro automatically adds a link to it. This feature can be disabled.
  • Support for subfolders Photos inside the default photo directory can be organized into subfolders.
  • Statistics View basic statistics: camera models, the total number of photos and RAW files, disk usage.
  • Access keys The application supports access keys for common actions.
  • Internationalization support. The application automatically detects and picks the right language. Localizing Mejiro is a matter of translating a handful of text strings in a dedicated .ini file.
  • GoatCounter integration Mejiro can be used with GoatCounter web analytics.

Requirements

  • A web server with PHP7 or higher (tested with Apache and lighttpd)
  • PHP libraries: GD, EXIF
  • Git (optional)

Installation and usage

  1. On Debian, Ubuntu, and Raspberry Pi, install Mejiro by running the following command as root: curl -sSL https://raw.githubusercontent.com/dmpop/mejiro/main/install.sh | bash. On other distributions, install the required packages and clone the project's Git repository using the command git clone https://github.com/dmpop/mejiro.git as root. Alternatively, you can download the ZIP archive and extract it into the document root of the server.
  2. Open the config.php file in a text editor and edit settings.
  3. Put photos into the photos directory (.jpg, .jpeg, .JPG, and .JPEG as well as RAW files).
  4. Make the mejiro directory writable by the server by running chown www-data -R mejiro as root.
  5. Point the browser to http://127.0.0.1/mejiro/ (replace 127.0.0.1 with the actual IP address or domain name of your server).

You can add descriptions to photos by creating accompanying .txt files. For example, to add a description to the F994362-R1-14-15.jpg photo, create the F994362-R1-14-15.txt file containing a short text. You can use HTML markup for formatting the text. To add description files in other languages, use the appropriate language prefix as follows: de-F994362-R1-14-15.txt (for German), ja-F994362-R1-14-15.txt (for Japanese), etc.

Run Mejiro in a container

  1. Install Podman and Buildah.
  2. Create a directory for your photos on the host machine.
  3. Switch to the mejiro directory and build an image using the ./buildah.sh command.
  4. Run a container on port 8000: podman run -d --rm -p 8000:8000 -v /path/to/photos:/usr/src/mejiro/photos:rw mejiro (replace /path/to/photos with the actual path to the directory on the host containing photos).
  5. Point the browser to http://127.0.0.1:8000 (replace 127.0.0.1 with the actual IP address or domain name of the machine running the container).

Author

Dmitri Popov ([email protected])

Acknowledgments

License

Mejiro is released under the GNU General Public License version 3 license.

More Repositories

1

pygmynote

Pygmynote is a Python-based command-line tool for storing and managing heterogeneous bits of data like notes, tasks, links, file attachments, etc.
Python
44
star
2

bash-pubkit

Book template and EPUB compiler
CSS
28
star
3

hako

Stupidly simple DIY web archiving tool
CSS
19
star
4

gphoto2-bottle

Python Bottle-based web app for controlling cameras via gPhoto2 software.
Python
18
star
5

pygmyfoto

A crude solution for publishing a photo roll on the web
PHP
10
star
6

geofix

SL4A and QPython Python script to obtain and store geographical coordinates
Python
8
star
7

sony-rpi-remote

Raspberry Pi-based remote shutter release for compatible Sony cameras
Python
7
star
8

otto

Otto is a clever little πŸ’ that imports and organizes photos on your Linux machine or NAS
Shell
5
star
9

readiculous

Transforms web pages into readable EPUB files
Shell
5
star
10

arduino-universal-trigger

Arduino-based universal flash and camera trigger
C++
5
star
11

sonnenhut

Simple dashboard for photographers
Python
5
star
12

microsth

A simple PHP app for storing notes, drafting articles, and microblogging.
PHP
4
star
13

rpi-photo

Miscellaneous scripts and files for the Raspberry Pi photo server project
Shell
4
star
14

wimb

Python Bottle-powered What's in My Bag web app
Python
4
star
15

konbini

Useful photography-related actions for Dolphin and Nemo
Shell
3
star
16

pinpinpin

Show geotagged photos, GPX tracks, and KMZ files on a map
JavaScript
3
star
17

journey2html

Python-based tool for generating static HTML files from the Journey app
Python
2
star
18

ravenna

Configurable landing page for your server.
PHP
2
star
19

tomodachi

Raspberry Pi-compatible programmable expansion board
Shell
2
star
20

girasole

Find photos from the past
PHP
2
star
21

natsukashii

A simple photographic time machine
Shell
2
star
22

docbook-snippets

DocBook VSCodium and VS Code as if by magic
2
star
23

tinypage

Super simple landing page
PHP
2
star
24

giretto

Simple PHP app to keep track of places
PHP
1
star
25

vps-express

Useful bits for VPS
Shell
1
star
26

photon-flash-trigger

Photon-based optical flash trigger
HTML
1
star
27

radiolina

Simple PHP-based web radio player
PHP
1
star
28

loppe

The simplest camera backup device
Shell
1
star
29

tim

Tiny JPEG recompresing web application
CSS
1
star
30

lucciola

Web UI and backup for ye olde DSLR
PHP
1
star