All Projects → Starcross → Django Starcross Gallery

Starcross / Django Starcross Gallery

Licence: lgpl-3.0
Django Gallery app with justified image layout, infinite scrolling and drag & drop support

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Starcross Gallery

React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+6907.14%)
Mutual labels:  gallery, infinite-scroll
Yii2 Gallery Manager
Stars: ✭ 90 (+221.43%)
Mutual labels:  gallery, drag-and-drop
Justified Gallery
Javascript library to help creating high quality justified galleries of images. Used by thousands of websites as well as the photography community 500px.
Stars: ✭ 1,512 (+5300%)
Mutual labels:  gallery, infinite-scroll
Django Infinite Scroll Pagination
🌀 Pagination based on the seek method / keyset paging / offset-less pagination
Stars: ✭ 90 (+221.43%)
Mutual labels:  django, infinite-scroll
Ownphotos
Self hosted alternative to Google Photos
Stars: ✭ 2,587 (+9139.29%)
Mutual labels:  django, gallery
Photonix
This is a new web-based photo management application. Run it on your home server and it will let you find the right photo from your collection on any device. Smart filtering is made possible by object recognition, location awareness, color analysis and other ML algorithms.
Stars: ✭ 592 (+2014.29%)
Mutual labels:  django, gallery
image-uploader
Simple Drag & Drop image uploader plugin to static forms, without using AJAX
Stars: ✭ 70 (+150%)
Mutual labels:  gallery, drag-and-drop
Django Photoblog
Photographer portfolio website powered by Django Framework. Features photo gallery with infinite scrolling, tagging, thumbnail generation and CMS for creating pages. Configured for Heroku and S3.
Stars: ✭ 19 (-32.14%)
Mutual labels:  django, infinite-scroll
Django Celery Beat
Celery Periodic Tasks backed by the Django ORM
Stars: ✭ 884 (+3057.14%)
Mutual labels:  django
Django Cqrs
A demo application to show how cqrs can be implemented in Django
Stars: ✭ 21 (-25%)
Mutual labels:  django
Drf Tus
A Tus (tus.io) library for Django Rest Framework
Stars: ✭ 15 (-46.43%)
Mutual labels:  django
Django Domande
[UNMAINTAINED] A plugable Django app to represent generic questions on forms.
Stars: ✭ 15 (-46.43%)
Mutual labels:  django
Django Streamfield W
A StreamField for Django. Ported from Wagtail, with new DjangoAdmin-like API.
Stars: ✭ 22 (-21.43%)
Mutual labels:  django
Timed Backend
Django API for the Timed application
Stars: ✭ 15 (-46.43%)
Mutual labels:  django
Book Code
《Django开发从入门到实战》书籍各章节源代码
Stars: ✭ 28 (+0%)
Mutual labels:  django
Jong
🐍 💡 JOplin Notes Generator - project replaced by https://github.com/foxmask/yeoboseyo
Stars: ✭ 15 (-46.43%)
Mutual labels:  django
Kanban React
The Kanban Application with multiple backend languages.
Stars: ✭ 15 (-46.43%)
Mutual labels:  drag-and-drop
Djangorestframework Book
Django REST framework 3 中文文档, API参考, 最佳实践指南
Stars: ✭ 28 (+0%)
Mutual labels:  django
Framework
The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.
Stars: ✭ 27 (-3.57%)
Mutual labels:  django
Media Hub
A Django based Web app that allows users to access information about movies present in their computer even when offline(Initial Setup requires Internet)
Stars: ✭ 20 (-28.57%)
Mutual labels:  django

.. image:: https://img.shields.io/pypi/v/django-starcross-gallery.svg :target: https://pypi.python.org/pypi/django-starcross-gallery/ :alt: PyPI version

.. image:: https://travis-ci.org/Starcross/django-starcross-gallery.svg?branch=master :target: https://travis-ci.org/Starcross/django-starcross-gallery :alt: Build Status

.. image:: https://coveralls.io/repos/github/Starcross/django-starcross-gallery/badge.svg?branch=master :target: https://coveralls.io/github/Starcross/django-starcross-gallery?branch=master :alt: Code coverage

================= Starcross Gallery

Starcross Gallery is a streamlined photo gallery Django app. Key features are:

  • Justified image grid display, as used on sites like Flickr
  • Infinite scroll
  • Easy drag and drop upload
  • Straightforward object model - All metadata is pulled from the file including title and exif data

Demo at https://starcross.dev/gallery

Quick start

  1. Install Starcross gallery using pip::

    pip install django-starcross-gallery

  2. Add "gallery" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ... 'gallery', ]

  3. Include the gallery URLconf in your project urls.py like this with your preferred location e.g. "gallery/"::

    path('gallery/', include('gallery.urls')),

  4. Ensure a MEDIA directory <https://docs.djangoproject.com/en/2.1/topics/files/>_ is set up

  5. Run python manage.py makemigrations gallery, then python manage.py migrate gallery to create the models.

  6. Start the development server and create any albums you required in http://127.0.0.1:8000/admin/. It's not necessary to create albums if you prefer just a single image feed

  7. Visit http://127.0.0.1:8000/gallery/ to access the gallery. Albums can be added through the django admin interface (/admin)

Instructions

Starcross gallery groups Images into Albums, which enables your to organise your presentation. Add albums via the django admin interface, and drag multiple images into your empty albums in the album page itself. It's also possible to use the gallery as a flat image feed only, which is a view published at /images. All images will be displayed here in descending date order. You can add images here directly as well, but they will not be added to an album.

The gallery was designed with simplicity of Image management in mind, so titles are derived from the file name. You only need to add albums and then drag your collection into place. The idea is to avoid the need to manage your collection both on the website and on your disk. If you wish to reorganise, you can delete and easily re-upload

Images in albums are ordered by the date the photo was taken if available in the exif data, or failing that the modification date

Album order can be specified in the Django admin interface. Support for django-admin-sortable2 <https://github.com/jrief/django-admin-sortable2>_ is provided, if you want drag and drop ordering in the admin interface. Just installing the module is all that's required. If you have already added albums you will need to use the reorder <https://django-admin-sortable2.readthedocs.io/en/latest/usage.html#initial-data>_ command.

Settings

Override these default settings by adding to your settings.py

GALLERY_LOGO_PATH -- Default: "gallery/images/starcross.png"

Path to the header logo within the static directory. If you do not wish to use a logo, override with a blank string

GALLERY_TITLE -- Default: "Gallery"

The title of the Gallery shown in the header on the main page and image feed

GALLERY_FOOTER_INFO -- Default: "Starcross Gallery"

Information text in the footer

GALLERY_FOOTER_EMAIL -- Default: "[email protected]"

Contact email address in the footer. Override with a blank string to hide

GALLERY_THEME_COLOR -- Default "black"

Use a predefined theme color scheme. Options are black, white, or grey

GALLERY_THUMBNAIL_SIZE -- Default: 200

The target thumbnail height in px. This will vary slightly in rendering due to the justified layout

GALLERY_PREVIEW_SIZE -- Default: 1000

The preview size in px - width or height, whichever is largest. The rendered image size will depend on the size of the browser window, so this should be set high enough to not cause a deterioration in quality

GALLERY_RESIZE_QUALITY -- Default: 80

JPEG quality (0-100) of the preview and thumbnail images

GALLERY_HDPI_FACTOR -- Default: 2

The actual preview and thumbnail sizes are multiplied by this number, but rendered according to the quoted value. This enables high dpi displays, such as many mobile devices to show more detail and take advantage of their extra resolution. Some go up to 4x now, so recommended values are 1-4

GALLERY_IMAGE_MARGIN -- Default: 6

Margin between thumbnails in px. Some may prefer a less condensed look, so increase this value if your template requires it

Troubleshooting

Broken image links after upload

Check your MEDIA settings. If the media location on disk is changed, you will need to copy the files in the CACHE directory to the new location, or delete and re-upload the broken images

Errors during upload

Your server may have a limit on maximum request size (e.g. client_max_body_size for nginx). This needs to be larger than the combined total of all the images your are uploading at once. Also the timeout may need to be extended as preview and thumbnail caches are generated at the time of upload

Delay when dragging images into upload box

If you are using Firefox on Linux, there can be a delay before the upload box flashes to acknowledge the pending files, proportional to the number of files. You can use another browser such as Chrome if this is inconvenient.

Credits

Starcross Gallery is by Alex Luton [email protected], published under GNU LGPLv3

Album icon by Google licensed CC BY 3.0

Focal Length icon by Ilaria Bernareggi from the Noun Project

Other image data icons made by Freepik www.flaticon.com licensed by CC 3.0 BY

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].