Skip to content

[unmaintained] Django field and widget that can use a device camera to get an image

Notifications You must be signed in to change notification settings

alexdutton/django-camera-imagefield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-camera-imagefield

Build Status codecov Codacy Badge PyPI

Django field and widget implementations that:

  • Presents the user with the option to capture an image with their device's camera (e.g. laptop webcam or phone camera)
  • Can enforce min/max aspect ratios by cropping
  • Can enforce a maximum size constraint by resizing the uploaded image
  • Can convert all image formats to JPEG if required

Usage

from fractions import Fraction

from camera_imagefield import CameraImageField
from django import forms


class MyForm(forms.Form):
    landscape = CameraImageField(aspect_ratio=Fraction(16, 9))

About

[unmaintained] Django field and widget that can use a device camera to get an image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published