Live data from Hacker News

Review my weekend HTML5 project: DropMocks

dropmocks.com

111–115 of 115 posts

Re: Review my weekend HTML5 project: DropMocks

#112

Earlier quoted context omitted.

definitely i'm gonna try your lib.

Cool. Fork on github and send any pull requests. The issues right now are that it only works with ff3 and chrome. I'd have thought safari would work, but it doesn't (didn't for me). Some integrated browser detection to offer transparent reduction for images on compatible browsers would great. Let me know how it works out for you :)

I like how it changes the dimension. But converting to PNG is massively increasing the file size?

"Original file was: 137724 bytes Transmitted size was: 844176 bytes (due to base64) New file is: 633131 bytes"

Re: Review my weekend HTML5 project: DropMocks

#113

Earlier quoted context omitted.

Would you be OK with resizing? App Engine has a 1MB limit, and I could get around that by splitting the file on the client, but I could also just do a resize in JS with canvas/ImageData.

You should probably be using the Blobstore API if you are not already. http://code.google.com/appengine/docs/python/blobstore/overv... It takes a bit more work but you could store the original file since it has a 2GB limit. You can only fetch 1MB at a time but it should still be doable.

Another option is to use boto to pass the upload along to S3 and just store the link path in app engine.

Re: Review my weekend HTML5 project: DropMocks

#114

Earlier quoted context omitted.

Cool. Fork on github and send any pull requests. The issues right now are that it only works with ff3 and chrome. I'd have thought safari would work, but it doesn't (didn't for me). Some integrated browser detection to offer transparent reduction for images on compatible browsers would great. Let me know how it works out for you :)

I like how it changes the dimension. But converting to PNG is massively increasing the file size? "Original file was: 137724 bytes Transmitted size was: 844176 bytes (due to base64) New file is: 633131 bytes"

It might be - not sure it's just a PNG issue, or if it's a canvas flaw, or what. The system could ideally check the before/after sizes, and only send the smaller one. Good catch (I think I'd seen that once in testing too).
Post reply on HN