News for hackers. Stuff that matters.
Re:Review my weekend HTML5 project: DropMocks by mgkimsal on Friday September 17, 2010 @10:42PM (#1703559)
pretty slick :)

I created a client-side image shrinker - demo at http://kimsal.com/shrinker - github at http://github.com/mgkimsal/jsclientshrinker Perhaps integrating this functionality for images that are 'too big' (whatever file size you decide) would be a nice enhancement? :)

Re:Review my weekend HTML5 project: DropMocks by Blackymetal on Saturday September 18, 2010 @12:26PM (#1704431)
definitely i'm gonna try your lib.
Re:Review my weekend HTML5 project: DropMocks by mgkimsal on Saturday September 18, 2010 @02:41PM (#1704691)
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 :)

Re:Review my weekend HTML5 project: DropMocks by boltofblue on Sunday September 19, 2010 @09:00PM (#1707378)
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 by mgkimsal on Tuesday September 21, 2010 @03:35PM (#1713817)
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).