Skip to content

PBS-KIDS/Carson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Carson helps you implement current best practices in responsive design, allowing you to selectively resize or hide images to cater to varying screen form factors. Carson will take care of loading an image over the network in varying sizes automatically. It currently supports PNG and JPEG formats.

Prerequisite

  • Memcache

Installation

pip install bates

settings.py

  1. Define memcache configuration (see https://docs.djangoproject.com/en/dev/topics/cache/#memcached).
  2. Add the following to INSTALLED_APPS
  3. 'bates.core'
  4. 'bates.images'
  5. 'bates.origins'

./manage.py syncdb

./manage.py collectstatic

Admin

This is where Image Profiles and Origins are created.

TODO: Usage instructions and examples.

JavaScript

Resized images are requested via "data-carson-size" attribute of <img> tags.

TODO: Usage instructions and examples.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published