Images and shadow transparency

Please believe me I AM working my way through the reference book so when i get on the forum it is after reasonable searches elsewhere, i don’t want to waste too much of everybody’s time, however, now you have all wasted time reading the waffling at the beginning of the post … I am right in thinking that when I bring in, say, a JPG and add a border and a drop shadow I need to turn it into a PNG / millions of colours to enable to transpareny of the shadow /

Best Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 21/7/08 (at 06:31 -0400) Roger Burton said:

I am right in thinking that when I bring in, say, a JPG and add a
border and a drop shadow I need to turn it into a PNG / millions of
colours to enable to transpareny of the shadow

In short: yes.

To elaborate, it doesn’t matter what kind of image format you
import, Freeway will produce a web-ready graphic as part of the
output process. It will generate a fresh JPEG or GIF (or PNG if you
specify that output format) from the image data that’s in your
graphic box on the page.

So - important point here - it is best NOT to use JPEGs as your
original image data if you can help it. You DON’T need to produce
web-optimised JPEG graphics first, and the output from Freeway will
be recompressed from scratch - compounding any loss already present
from the pre-Freeway compression process.

Now, back to your query: Freeway lets you arrange your images as
flat, unlayered items (table-based layout) or as layered DIVs
(CSS-based layout).

Table-based graphics can merge with each other when overlapped, and
even generate their own background colour from the page background.
This makes things such as translucent shadows work very well on
non-white page backgrounds.

CSS-based graphics are far more independent; they aren’t in flat,
unlayered contact with anything else, so they don’t try to merge
their pixels with other items - or generate new background content
from what’s underneath. This means soft shadows are NOT generated
with the right pixel colour flooded in to fake the transparency
effect.

The way to get a visual translucency effect working with CSS/layered
graphics is either:

  1. Group them with something that provides the right underlying
    visual content, or

  2. set the items in question to be generated as PNG graphics at
    millions of colours.

Option (1) produces a merged graphic that fakes the transparency
effect, but still places the final output graphic within the
CSS-positioned DIV. As long as the final item always sits over the
right background colour or image, the effect remains convincing.

Option (2) generates an image that really does include true 8-bit
transparency, so it will show soft, variable-opacity shadows that
work whatever content lies beneath. However, the file size of this
kind of graphic is larger than a standard JPEG. It also requires a
kind of hack to make Internet Explorer 6 or 7 to show the
transparency properly, but that’s automatically done for you if you
use this option and don’t specifically disable it.

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

To elaborate…

Thanks, Keith, for taking the time to write another very useful technical explanation.

Slightly off topic, but have you created any more 3D sites with sound added? As a musician I found the panorama of the outdoor concert audience and musicians fascinating. Adding angle-specific sound files really put icing on the cake!

Jim


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 21/7/08 (at 13:02 -0400) JimS said:

Slightly off topic, but have you created any more 3D sites with sound added?

I got back from Glade Festival last night, having shot around a dozen
panorama sets. It will take a while for me to get those processed -
partly because I’ll be on holiday for a week next week (holiday?
what’s one of those?), and partly because most were shot in fairly
challenging lighting conditions. (On stage, in the ‘photo pit’, or
right in the mad crowds.)

Once they’re done I’m going to talk to the Glade folks about putting
these up with looping directional audio like that sample I posted a
while back. It really adds a whole new layer of surreality, doesn’t
it? :slight_smile:

Here’s the first one. No music yet, but that may come:

http://www.panoramaphotographer.com/glade/

And by the way, anyone with an iPhone running the new version 2.0
software should definitely download the free Pangea VR panorama
viewer from the App Store. It contains an index of dozens of
different pano photographers’ online portfolios, all designed to be
viewed and interacted with on the iPhone. Mine is called “A Panorama
Postcard” and currently shows six images with more to come soon.

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes Keith thanks for the very (as always) detailed answer, I just need to get my head around tables and/or CSS. Good of you to take the time. Roger


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options