Elastic Images

I act­ively pro­mote elastic design, so the next step is elastic images. That is images that are pro­por­tional to your lay­out. So here is a little exper­i­ment. Apo­lo­gies to RSS read­ers, I have yet to work out how not to send images via RSS. If you are on the site, see how the images adjus­ted to fill the space, on both the sum­mary page and post page, by either drag­ging the browser window.

Tim Underwood of the Rosemary Beads 1995Joe Algeri  guitar smashing 1999

One the left is one of my favour­ite images I took early in my time as rock and roll pho­to­gra­gher, Tim Under­wood of the Rose­mary Beads in 1995. The photo on the right, was one of my last, Joe Algeri smash­ing his fake Ricken­backer in 1999. Between 1995 to 99 I went to a few hun­dred gigs and took some 15,000 pho­tos using 35mm film and wrote reviews of most of those gigs for Bubble­head

My dark past out of the way, onto elastic design, if you change the size of the page, by either drag­ging your browser win­dow or chan­ging the font size. The pho­tos remain pro­por­tional to the width of the page and font size (though with the use of SIFR you have to refresh the page to get the head­ing right). This is done by defin­ing the image size in ems. I did that in the style sheet so that not mat­ter which type of page you see the image on in this blog it will always fill the space.

The dis­ad­vant­age, you are in the hands of browsers in the how the handled the res­iz­ing of the images, most do a good job, a few not so good. Plus you need to provide high qual­ity images, for example the two used here are 40kb in size, if they were fixed size you could get away with 12kb images.

27 Responses to “Elastic Images”

  1. Riz Says:

    Hi Nick,

    Wandered into here while fol­low­ing links… that’s a cool concept (ie, elastic images).

    See you at OSIG

    Donna

  2. Myles Eftos Says:

    Nice!

    I assume you accom­plish this via JavaScript?

  3. Myles Eftos Says:

    Now, that I have read the rest of the post, I can see you do it in CSS (I’ll learn to read one day) :)

  4. nick Says:

    Myles, you were half right, the page res­iz­ing when you drag the win­dow is done by javas­cript: it is done by the dozen lines or so in fontsize.js .

    The rest is pure CSS, depend­ing on which type of page your are view­ing the images are either on a full width page 37.333em high 28em wide, or on a page with a right hand column 24em high and 18em wide.

  5. Anonymous Says:

    were is the pic­tures of rose­mary beads

    Nick: It is a photo of Tim Under­wood, from the now defunct band The Rose­mary Beads

  6. El Blog de Emulate » Blog Archive » Imagenes elásticas Says:

    […] Reciente­mente estuve buscando algún pos­ible javas­cript que pudi­era red­i­men­sionar el texto en fun­ción del tamaño de la ventana, y bueno encon­tré algun ejem­plo interes­ante, aunque lo que más me alu­cinó fue encon­trar una página que además de red­i­men­sionar el tamaño del texto en fun­ción del tamaño de la ventana, además red­i­men­siona tam­bién las imá­genes. ¡¡ No es alu­cin­ante!! Pues en este otro ejem­plo podéis verlo. Lo dicho ¡Alu­cin­ante! ¡viva el javascript! […]

  7. the hosting & marketing online blog » Imagenes elasticas Says:

    […] http://nickcowie.com/2005/elastic-images/ […]

  8. malberto.es » Imágenes Líquidas: Says:

    […] Para los tamaños de las cajas de texto o los divs y las fuentes existen las unid­ades relativas pero, ¿y para las imá­genes? ¿Las imá­genes no pueden cam­biar de tamaño? En la página de Nick Cowie he encon­trado una forma de hacerlo bastante sen­cilla, aunque no exenta de des­venta­jas. Se trata de dimen­sionar la imagen con unid­ades relativas, como se hace con las capas o fuentes. […]

  9. Nick Cowie » Blueprint a CSS framework Says:

    […] Elastic images should be in mul­tiples of 1.5em. […]

  10. RE Mogul Says:

    2 Words: OUTLINE FONTS! — The NEXT ECHELON in elastic web design.

    Fonts defined by equa­tions ELASTICIZE PERFECTLY to all res­ol­u­tions without need for anti-aliasing (set:off for large # of machines — to my abid­ing hor­ror.) A bit of FLASH (freely cir­cu­lat­ing) will snap-in a CHOICE out­line font (in copi­ous cir­cu­la­tion) while expend­ing only a few kilobytes.

    SWF Images = defined by equa­tions = Out­line Fonts

    Unlock­ing your per­fec­tion:
    ————————-
    Opera has the most advanced extens­ible ren­der­ing engine known to man. Down­load it. Hit [+] & [-]. See your glory, Sir.

    Great Minds Think Alike.

    % % PS % %
    Make “com­ments” POP in all browsers: replace with

  11. RE Mogul Says:

    Refine­ment
    ————————–

    Make com­ments POP in all browsers:
    Replace alt=“alt text” with title=“comment text” — inside tags.

  12. RE Mogul Says:

    Fire­fox: Hit Con­trol [+] & [-]…

  13. RE Mogul Says:

    Flash to snap-in an Out­line Font = Perfection.

  14. RE Mogul Says:

    Thought my other com­ment was deleted… Apo­lo­gies for reit­er­a­tion (above.)

    Opera has a “fit to win­dow” width fea­ture — the inter­est­ing distinction.

  15. RE Mogul Says:

    :::::About White Backgrounds::::::::::

    White is for paper.
    On screen, white = star­ing at a light bulb.

    So many other hues, yet, so-little vari­ety.
    Respect the eyes — people of the inter­net — choose a color.

  16. RE Mogul Says:

    Avoid­ing white is also future-friendly.

    OLEDs and other advan­cing dis­play tech­no­lo­gies treat black/white smarter.

    On an OLED dis­play: a 1in x 1in image on an all-black back­ground uses only as much bat­tery as a 1in x 1in dis­play (irre­spect­ive of the actual screen real-estate.) Darker pixels = lower power con­sump­tion, in the future.

  17. RE Mogul Says:

    FLASH is the FUTURE.

  18. RE Mogul Says:

    Why a mul­tiple of 1.5?

    An approx­im­a­tion of 1.6180339887 –The Golden Ratio?

  19. RE Mogul Says:

    Per­haps: All images a mul­tiple of 1.6 ?

  20. Nick Says:

    Mogul I am old school 35mm pho­to­grapher hence the 3:2 ratio.

  21. RE Mogul Says:

    Pho­tos are Sur­real. Much Respect for Old School.

    I’ll try not to run-away with my com­ments. I really need my own blog (Sigh).

  22. RE Mogul Says:

    BUBBLEHEAD adj.

    A per­son con­vinced that there is a real estate bubble and it is about to burst. Eagerly spouts off “wis­dom” regard­ing this real estate bubble to any­one who will listen.

  23. RE Mogul Says:

    Actu­ally, a noun.

    Copied From:

    http://www.urbandictionary.com/define.php?term=bubblehead

  24. Nick Says:

    RE Mogul, you could do with your own blog or micro-blogging (ie twit­ter or sim­ilar). It is a little dif­fi­cult to fol­low your com­ments around this blog but I will try.

    Bubble­head was the name given to a local music web­site cre­ate by Ang Cham­bers, some 15 years ago. It had some deep sea diver con­nota­tions, a lot of the music was centred round the port city of Fremantle.

    You will find almost noth­ing in archive.org or the Pan­dora web archives on it. It las­ted from 1994 to 2000 or so. My reviews of live band and pho­to­graphs stopped dur­ing 1998/9, I just got burnt out from going to 3 gigs a week, pro­cessing film, devel­op­ing pho­tos and writ­ing reviews as well as a full time job. Almost none of my work from 1994 to 99, still exists on the web, it was a long very time ago in web terms.

  25. Tutorial de cómo y porqué hacer layouts web líquidos o elásticos | ..: Cristian Eslava | Diseño Gráfico / Web | Maquetación | Formación :.. Says:

    […] es interes­antes esta prop­uesta para hacer imá­genes elásticas que hace uso de javas­cript y puede mer­mar la cal­idad de la […]

  26. moi Says:

    no es una mala opcion, pero juega en con­tra de noso­tros el peso de las imagenes (debe tener el tamaño máx­imo para q no se pixelee en cualquier momento.

  27. Nick Says:

    For those whose Span­ish is lim­ited like me (I last use it as an 8 year old) the above com­ment via google trans­lator =
    “not a bad option, but we played against the weight of the images (must be the max­imum size for q pixel not at any time.“
    I have to agree the weight (size in kb) of image is import­ant factor.

Affiliates

Google
text advertising by
Powered by Reseller Zoom