garethr / appengine-image-host

Simple image resizing and hosting application

This URL has Read+Write access

name age message
file .gitignore Tue Feb 24 13:08:16 -0800 2009 without the index.yaml file in the repo you nee... [garethr]
file README.textile Thu Feb 05 00:55:56 -0800 2009 typo in readme [garethr]
file app.yaml Wed Feb 04 11:37:01 -0800 2009 made it so only the admin can upload images [garethr]
directory assets/ Wed Feb 04 11:37:33 -0800 2009 added the ability to delete images that have be... [garethr]
file backend.py Mon Mar 09 06:55:48 -0700 2009 bug in deleting code which threw an error on de... [garethr]
file frontend.py Thu Feb 05 13:35:30 -0800 2009 fixed bugs from not checking if request paramet... [garethr]
file index.yaml Tue Feb 24 13:08:16 -0800 2009 without the index.yaml file in the repo you nee... [garethr]
file models.py Wed Feb 04 12:15:59 -0800 2009 lots of comments for the core code [garethr]
directory templates/ Mon Jun 08 04:50:30 -0700 2009 spelling error in my name! [garethr]
file test.py Wed Feb 04 12:16:21 -0800 2009 start of a test suite [garethr]
directory tests/ Wed Feb 04 12:16:21 -0800 2009 start of a test suite [garethr]
README.textile

Google AppEngine Image Hosting

Purposely simple image management application for use on Google AppEngine.

Background

I like to add the odd image to a blog post now and then, but hate having to upload and resize images so they fit nicely. This simple application scratches that itch. Simply upload and resize images and then host them from AppEngine. It was also the perfect opportunity to play with the Image API.

Usage

For the most part it’s just a matter of deploying to AppEngine which I won’t cover here. Read the official documentation for details.

By default images are viewable by everyone but the upload panel is only available to the administration for your account. If you want to make that available to any registered user then change the following line in the app.yaml configuration file.

- url: /.*
  script: backend.py
  login: admin

To this:

- url: /.*
  script: backend.py
  login: required

Limitations

It currently uses keys to identify resources, which has the advantage of being very easy to implement and the disadvantage of making sharing data between instances impossible. This means if you upload images locally to test things out you’ll have to upload them again when you deploy to App Engine. I might fix that if I get bored or it I start to make extensive use of it.

Licence

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.