Steve Lacey. Get yours at flagrantdisregard.com/flickr

Displaying A Large Image In A Blog Post

| | Comments (5) | TrackBacks (0)

Whenever I place an image in a blog post there are two options:

  1. If it’s a photo I just embed the small version and link to Flickr.
  2. If it’s a screen grab or something, I upload it to my server and embed the image directly. I like to keep my Flickr photostream clean and only host photos over there.

The problem with the second option is that I have to make the image small enough that it doesn’t blow width limits due to the design of the blog page itself and cause it to run out of the center box. This means that the image can be too small to be really useful.

Now, try clicking on the following image.

DC3

Cool, huh?

Of course, if you’re reading this in an aggregator you’ll have to go to the webpage to see what I’m talking about.

Now I can feel happy about embedding a small image, as the user can click through to the full image with cool presentation goodness.

You can read about the technique and download the code over at Huddle Together.

[Tip’O’Hat to Kelly Smith for the link.]

0 TrackBacks

Listed below are links to blogs that reference this entry: Displaying A Large Image In A Blog Post.

TrackBack URL for this entry: http://www.steve-lacey.com/cgi-bin/mt/mt-bar.cgi/891

5 Comments

Kelly Smith said:

It is pretty sweet huh!

Shawn said:

Apparently, it only works in IE. I was wondering what the big deal was, as in Firefox the smaller image just linked directly to the larger one. Been doing that since browsers started supporting inline images ;-)

Shawn said:

Wait - I'm wrong. Looks like the page didn't actually reload when I enabled Javascript. Very cool.

QWEynbLK said:

????????????
?? ????? ???????
? ??? ???? ???? ???? ?? ?????? ??? ???????????
???????? ? ??????????? ????????????? ????????
?? ?????? ??? ?????????? ? ???????? ?????????? ???????!
???? ??? ?? WWW.BYOPT.NET


????? ???? ????????? ??? ?????????

sduy??ik said:

????????????
??? ???-?? ????????? ??? ????? ??????? ?????.
??? ???????? ???????? ? ?????????? ?????????,? ????? ??? ?????? ??????.
??? ??? ? ???: http://byopt.net/14.html

?????

Leave a comment

About Me

Steve Lacey, software developer at Facebook, British, married to the lurvely Nabila, dad to the wonderful Julian and Jasmine. Living in Kirkland (near Seattle), WA.


A brief professional bio.


steve@steve-lacey.com
+1 (425) 214-4716

About this Entry

This page contains a single entry by Steve published on September 12, 2006 10:34 PM.

iTunes 7 and The Steve Jobs Show was the previous entry in this blog.

On Being A Light-Hearted Parent is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Statsorama

  • 1050 posts
  • 1333 comments

Music