Skip to main content

A simple Django model fields to generate images from videos or write on images

Project description


django-thumb is a simple Django app contains 2 models fields
to generate images from videos and write on images

Visit the github repo for more info.

Quick start

1. Add "thumb" to your INSTALLED_APPS setting like this::


2. Add the STATIC_ROOT, MEDIA_ROOT and MEDIA_URL in setting like:
STATIC_ROOT = os.path.join(BASE_DIR, "static")
MEDIA_ROOT = 'media'
MEDIA_URL = '/media/'

3. Add the MEDIA path to your urlpatterns in like:
from django.conf.urls.static import static
from django.conf import settings

urlpatterns = [
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

3. Run `python collectstatic ` to create the static fields in your root.

4. now you can use the app model fields like:
from thumb import ImageThumbnailField, VideoThumbnailField

5. in VideoThumbnailField you have to give the video field name if it's not named as `video`:
my_video = models.FileField()
thumb = VideoThumbnailField(video_field_name="my_video")

6. test the Thumbnail Fields in the admin page

### Visit for more info.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-thumb, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-thumb-1.0.2.tar.gz (182.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page