{"id":16177597,"url":"https://github.com/raphaelm/instantgallery","last_synced_at":"2025-03-19T01:30:38.712Z","repository":{"id":2076248,"uuid":"3015448","full_name":"raphaelm/instantgallery","owner":"raphaelm","description":"Beautiful photo gallery for the web in one Unix command line. Generates static html and javscript files.","archived":false,"fork":false,"pushed_at":"2013-04-04T18:24:45.000Z","size":292,"stargazers_count":13,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T13:38:57.132Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"justjavac/free-programming-books-zh_CN","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raphaelm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-12-19T22:17:36.000Z","updated_at":"2020-07-02T16:20:29.000Z","dependencies_parsed_at":"2022-09-07T14:31:52.778Z","dependency_job_id":null,"html_url":"https://github.com/raphaelm/instantgallery","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Finstantgallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Finstantgallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Finstantgallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raphaelm%2Finstantgallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raphaelm","download_url":"https://codeload.github.com/raphaelm/instantgallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243957999,"owners_count":20374782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T05:09:38.718Z","updated_at":"2025-03-19T01:30:38.444Z","avatar_url":"https://github.com/raphaelm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"instantgallery.py\n=================\n\ninstantgallery.py takes a directory containing photos and turns it into a \nshiny photo gallery made for the web. ALl you have to do is to enter a single\ncommand line. To publish the gallery, just upload the output directory to \nany webserver. It's plain HTML, CSS and Javascript and it thus works regardless \nof your webserver.\n\ninstantgallery.py can handle and display EXIF information and is able to try\nrotating portrait format photos automatically (by using their EXIF rotate\ninformation combined with their aspect ratio).\n\nBy default the photos are ordered by their timestamp but you can specify a flag to \nhave them sorted alphabetically. In the first case the script tries to read \ntheir EXIF \"OriginalDate\" field first and uses Unix' mtime() if this failes.\n\nFor an example of a gallery created with this software see below.\n\ninstantgallery.py supports EXIF information including GPS (shown using \nOpenStreetMap), subdirectories, intro texts and generating a ZIP archive\nof the pictures for download.\n\ninstantgallery.py is able to generate galleries in other languages than\nEnglish, but currently only German is supported. If you add another language\nI would be glad to get an [email](\u003craphael@geeksfactory.de\u003e) or just fork\nthe project on [GitHub](\u003chttps://github.com/raphaelm/instantgallery\u003e) and\nsend me a pull request.\n\nBugs\n----\n\nPlease create an issue at [GitHub](\u003chttps://github.com/raphaelm/instantgallery\u003e).\nIf you don't have and don't want to have a GitHub account, send me an [email](\u003craphael@geeksfactory.de\u003e).\n\nExample\n-------\n\n    $ tree /tmp/demo\n        /tmp/demo\n        ├── GPS demo\n        │   ├── Paris1.JPG\n        │   ├── Paris2.JPG\n        │   ├── Paris3.JPG\n        │   ├── Paris4.JPG\n        │   └── Paris5.JPG\n        ├── INTRO\n        ├── London1.JPG\n        ├── London2.JPG\n        ├── London3.JPG\n        ├── London4.JPG\n        ├── London5.JPG\n        ├── Oslo1.JPG\n        ├── Oslo2.JPG\n        ├── Oslo3.JPG\n        ├── Oslo4.JPG\n        ├── Oslo5.JPG\n        ├── Rom1.JPG\n        ├── Rom2.JPG\n        ├── Rom3.JPG\n        ├── Rom4.JPG\n        └── Rom5.JPG\n\n     1 directory, 21 files\n\n    $ ./instantgallery.py /tmp/demo /tmp/capitals --title \"Capitals\" -i -z\n    \nResult: http://www.raphaelmichel.de/bilder/demo/\n\nAuthors\n-------\n* Raphael Michel\n* Graham ([github.com/4gra](https://github.com/4gra/instantgallery))\n\nLicense\n-------\n\nThe software is free and open source software and published unter the terms\nof the MIT license.\n\nCopyright (c) 2011-2013 Raphael Michel and contributors\n\n\u003e Permission is hereby granted, free of charge, to any person obtaining a copy of \n\u003e this software and associated documentation files (the \"Software\"), to deal in the \n\u003e Software without restriction, including without limitation the rights to use, copy, \n\u003e modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, \n\u003e and to permit persons to whom the Software is furnished to do so, subject to the \n\u003e following conditions:\n\u003e The above copyright notice and this permission notice shall be included in \n\u003e all copies or substantial portions of the Software.\n\u003e \n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR \n\u003e IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, \n\u003e FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE \n\u003e AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER \n\u003e LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING \n\u003e FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER \n\u003e DEALINGS IN THE SOFTWARE.\n\nThe default font is 'Ubuntu' which is Copyright 2010, 2011 Canonical Ltd.\nTo remove it, just remove the first 6 lines from both .css files and\nremove the file 'static/Ubuntu.woff'.\nThe font is licensed under the Ubuntu Font Licence, Version 1.0. \nhttps://launchpad.net/ubuntu-font-licence\n\nRequirements\n------------\n\n* [Python 2.7](http://python.org/) (Debian/Ubuntu: `python2.7`)\n* [Python Imaging Library (PIL)](http://www.pythonware.com/products/pil/) (Debian/Ubuntu: `python-imaging`)\n* [ImageMagick's convert](http://imagemagick.org/) (Debian/Ubuntu: `imagemagick`)\n        \nOptional, for more cool features:\n\n* SlimIt (`$ [sudo] easy_install-2.7 slimit`)\n* CSSmin (`$ [sudo] easy_install-2.7 cssmin`)\n* Django-HTMLmin (`$ [sudo] easy_install-2.7 django-htmlmin`)\n\nUsage\n-----\n    usage: instantgallery.py [-h] [--title TITLE] [--language LNG] [--no-date]\n                             [--no-sort] [--no-rotate] [--no-exif] [--no-gps]\n                             [--web-resolution WxH] [--zip] [--sub N]\n                             [--filenames] [--intro] [--no-promoting] \n                             [--zipnames SCHEMA] [--workers WORKERS] [-y] [-s]\n                             [--version]\n                             INPUT OUTPUT\n\n    Builds a beautiful web gallery. Now.\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      --version, -v         show program's version number and exit\n\n    Basic settings:\n      INPUT                 This is directory with pictures for the gallery.\n      OUTPUT                This is where the gallery should be created.\n      --title TITLE, -t TITLE\n                            Name the gallery\n      --language LNG, -l LNG\n                            Sets the language to be used in output files.\n                            Available languages: en de\n\n    Image processing:\n      --no-date, -d         Prevents instantgallery.py from showing the date and\n                            time of the picutres on the index page.\n      --no-sort, -c         Do not try to sort the pictures chronologically. (We\n                            try first to use EXIF as source for the timestamps,\n                            then mtime().)\n      --no-rotate, -r       Don't try to automatically rotate pictures.\n      --no-exif, -e         Don't output details from EXIF data\n      --no-gps, -g          Don't display GPS data (does only make sense if EXIF\n                            is displayed).\n      --web-resolution WxH, -w WxH\n                            Specify maximal resolution for pictures shown online\n                            (default: 1920x1080)\n\n    Additional settings:\n      --zip, -z             Create a zip file with all the images and make it\n                            available for download.\n      --sub N, -S N         Subdirectory entering depth (0 for staying in the\n                            original directory).\n      --filenames, -f       Display filenames in image details.\n      --intro, -i           Use text file INTRO in the picture directories to\n                            display on the index page.\n      --no-promoting        Do not include a link to instantgallery.py's website\n                            in the footer of the gallery's overview.\n      --zipnames SCHEMA     Gallery name for the filenames in the zip file\n\n    Runtime options:\n      --workers WORKERS, -W WORKERS\n                            Number of parallel image processing workers to spawn.\n      -y                    Say yes to everything.\n      -s                    Skips the generation of thumbnails and similar things.\n                            THIS EXISTS FOR DEBUGGING. Use this only if you're\n                            aware of what you're doing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm%2Finstantgallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphaelm%2Finstantgallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphaelm%2Finstantgallery/lists"}