DISQUS

DISQUS Hello!  The comments on this profile are unclaimed and thus are unverified.

Do they belong to you? Claim these comments.

Jeff's picture

Unregistered

Feeds

aliases

  • Jeff

Jeff

9 months ago

in Looking for Ideas on Truck Bearing Kibble
I should read before writing... doh.

9 months ago

in Looking for Ideas on Truck Bearing Kibble
You could get super crazy and do this. Create the page so that it stretches nice and wide. Then, when the page loads you can measure the width of the screen, round it down a bit*, and then send the width off to a backend script. That script would then take a super high res version of the image, scale it down (nicely with GD or image magic) save it out and server it to the viewer. You could even refresh it if the browser resizes. Add a little caching and you're off. You could even preprocess the images to be of 10 different sizes and get a "best fit".

* Rounding here so you don't end up with 1000 variant sizes of an image that's 1000 pixels wide.

Someone will come along to this and say "Just add an image tag and set it's css to "max-width: 100%" and be done. True, except for the browsers that don't support that and also for the fact that GD/ImageMagic will do a much better job scaling the image than the browser will.

1 year ago

in Customize your iPhone @ Dan Rubin’s SuperfluousBanter on Dan Rubin's Superfluous Banter
Welcome back to blogging :)

I'mm'a keep this book marked for when I get my iphone. However, as I'm moving to sweden, I think I'll wait till that rumored 3G/16gb version comes out :D
Returning? Login