GithubHelp home page GithubHelp logo

anthrax3 / mejiro Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mungell/mejiro

0.0 1.0 0.0 10.96 MB

Pastebin for your photos

Home Page: http://dmpop.github.io/mejiro/

Python 6.77% PHP 91.93% Shell 1.30%

mejiro's Introduction

About Mejiro

Mejiro is a forgetful single-file PHP web app for instant photo publishing. The app features expiration functionality. When enabled, it deletes photos older than a user-defined number of days -- hence the forgetful moniker.

Mejiro

Features

  • Simplicity The entire app consists of a single PHP file (plus a fav icon). Mejiro requires no installation, and it can be deployed on any web server with PHP5 and the GD library.
  • Instant and easy photo publishing Upload photos, and Mejiro does the rest.
  • Automatic thumbnail generation Mejiro automatically generates thumbnails for faster preview.
  • Expiration functionality The app can automatically delete photos older than a specific number of days.
  • Basic EXIF data The app extracts and displays basic EXIF info for each photo, including aperture, shutter speed, and ISO.
  • IPTC keywords Mejiro parses IPTC metadata and displays keywords assigned to photos.
  • Display geographical coordinates on OpenStreetMap or Google Maps For geotagged photos, you can view their exact locations on OpenStreetMap.
  • Optional description text 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.
  • 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.
  • Support for subfolders Photos inside the default photo directory can be organized into subfolders.
  • Automatic language detection Mejiro automatically detects the browser language and picks the description text file with the appropriate language prefix.
  • Keyboard shortcuts The application supports keyboard shortcuts for common actions.
  • CrazyStat integration Mejiro supports integration with the CrazyStat web analytics software.

Requirements

  • A web server with PHP5 and the GD library. (Tested with Apache and lighttpd)
  • Git (optional)

Installation and Usage

  1. Install the required packages. On Debian and Ubuntu, this can be done by running the following command as root: apt-get install apache2 php5 php5-gd git
  2. In the terminal, switch to the root directory of the server (e.g., /var/www) and use the git clone https://github.com/dmpop/mejiro.git command as root to fetch the latest source code. Alternatively, you can download the ZIP archive and extract it into the document root of the server.
  3. Open the index.php file in a text editor and edit settings. This step is optional.
  4. Put photos into the photos directory (.jpg, jpeg, .JPG, and .JPEG files only).
  5. Make the mejiro directory writable by the server using the chown www-data -R mejiro command as root.
  6. 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.

To enable the expiration feature, change the $expire = false; line in the index.php script to $expire = true; and specify the desired expiration period by modifying the $days variable.

Demo

A Mejiro demo is available for your viewing pleasure.

Little Mejiro Book

Want to get the most out of Mejiro? Read the Little Mejiro Book.

mejiro's People

Contributors

poitch avatar splitbrain avatar uda avatar willwillis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.