Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

11 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages