alexdutton / django-camera-imagefield

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 63.8%Language:JavaScript 27.1%Language:CSS 9.1%