Skip to content

Flash image compressor for django and appengine, to compress the file down below 1mb for uploads.

Notifications You must be signed in to change notification settings

thurloat/GAEImages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

GAEImages - An Image uploading compressor do-hickey for Django App Engine

Squishes your image down to 1MB through size and quality (in that order)


Destructions as follows

In settings.py

    INSTALLED_APPS = (
        ...
        'GAEImages',
        ...
    )

In models.py

    from GAEImages.properties import ReferenceListProperty
    
    class ThingThatNeedsImages(db.model):
    	mahimagez = ReferenceListProperty(FlashImage)

In your views.py

    from flashdrawing.views import FlashDrawingWidget, FlashDrawingField
    
    class Woot(Form):
    	mahimagez = FlashDrawingField(widget=FlashDrawingWidget)
    	class Meta:
    		model = models.ThingThatNeedsImages

Now you'll have some images all up in your app. They're stored in each model as the key, which after the compression and upload to /fupload gets sent back to the client and stored in a list.

everything is handled for you. for more custom implementations, take a walk through the code and it's pretty self-explainitory.

any questions: email thurloat at gmail dot com

goot luck!

About

Flash image compressor for django and appengine, to compress the file down below 1mb for uploads.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages