Giter Club home page Giter Club logo

imageme's Introduction

imageMe is a super simple image gallery server.

Think python -m SimpleHTTPServer for pictures.

Super Duper Easy One Line Usage

To run the image server on port 8000:

curl https://cdn.rawgit.com/unwitting/imageme/master/imageme.py | python

Manual Usage

Step 1: Get the File

Get hold of a copy of imageme.py. For really easy use put it in your PATH.

You could clone this repo:

> git clone https://github.com/unwitting/imageme.git

Or just grab the file directly:

> wget https://cdn.rawgit.com/unwitting/imageme/master/imageme.py

Step 2: Run imageMe

Run imageme.py from the root directory to serve from:

> cd /path/to/my/pics
> imageme.py
Processing .
Creating index file ./imageme.html
Processing ./photos
Creating index file ./photos/imageme.html
Processing ./photos/holiday
Creating index file ./photos/holiday/imageme.html
Processing ./photos/family
Creating index file ./photos/family/imageme.html
Processing ./super_secret_stay_out
Creating index file ./super_secret_stay_out/imageme.html
Your images are at http://127.0.0.1:8000/imageme.html

You can specify a port, just like you can with SimpleHTTPServer:

> imageme.py 5678
Processing .
...
Your images are at http://127.0.0.1:5678/imageme.html

Browse and Enjoy

Hit the URL imageMe tells you in your browser, and have fun exploring.

imageme's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

imageme's Issues

[Feature request]: Make the script generate .html files upon request

Current approach when .html files are generated at start - is suitable only for static galleries.

I'd like to be able to start the gallery script once and add/remove folders with images on the go, without the need to restart the script.

I failed to figure out how to modify the script so that it would work the way I want, so please, add this feature.

Maybe this needs to be a different script.

Uniform row heights

Ideally the image tables should present rows of images which consume the full width of the cells, are 1/n of the width of the table wide (already the case), and the same height. This probably means cropping down to the shortest picture of the row.

Stop when it cannot write some folders

Hi! Awesome script! It saved me when my girlfriend forgot an external HD and she wanted to access some photos.

There's a thing though: if a folder or several folders aren't writable, the script suddenly stops. Is there a way to filter those folders that aren't writable and continue to execute?

Thanks!

Cannot show image

Hi,

First I would like to thank you for writing this great tool.

I was trying to use this to display about 20 tif images each at about 50 MB. On the webpage, I saw space holders, but not the real image. Is there limitations on the size or format of images that are supported?

Thank you,
Charlie

Doesn't work with utf8

How to recreate:

  1. Have a folder with a utf8 name
  2. Start imageme
  3. It'll output garbage for the folder name

Better mechanism for populating HTML

HTML code in strings in the Python isn't ideal - better would be to use a very basic templating engine (only requirement is that it uses standard Python only), or custom-made regex-based approach. That way we can move the HTML out to a single string literal, and from there hopefully to an external file. The end goal is to have the single-file Python built in the development environment from resource files.

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.