Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thurloat/gaeimages
Flash image compressor for django and appengine, to compress the file down below 1mb for uploads.
https://github.com/thurloat/gaeimages
Last synced: 9 days ago
JSON representation
Flash image compressor for django and appengine, to compress the file down below 1mb for uploads.
- Host: GitHub
- URL: https://github.com/thurloat/gaeimages
- Owner: thurloat
- Created: 2009-11-25T14:02:41.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2010-05-18T11:41:39.000Z (over 14 years ago)
- Last Synced: 2024-04-14T09:18:08.312Z (7 months ago)
- Language: Python
- Homepage: http://norex.ca
- Size: 199 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
## 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!