Specifying Icons by URI

0 views
Skip to first unread message

Henry Stapp

unread,
Apr 15, 2008, 7:11:35 PM4/15/08
to OpenSocial and Gadgets Specification Discussion
Problem: The current spec allows use of URI's to specify thumbnail
image and screenshot image, but is unclear on whether the icon image
can also be specified via URI.

Proposed Solution: Add a new value of "url" to the "mode" attribute of
the Icon element. In this case, the URI of the icon image would be
included as the value of the Icon element.
Usage: <Icon mode="url">http://foo.bar.bas/myapp/images/icon.jpg</
Icon>

Brian Frisch & Henry Stapp
MySpace

Cassie

unread,
Apr 28, 2008, 11:31:51 AM4/28/08
to opensocial-an...@googlegroups.com
Henry, I believe the spec is currently missing a bunch of explanatory notes for this tag. The Icon tag should be described like this:

The Icon element has a mode and a type attribute. The type attribute is simply the mime type of the image. The mode attribute only has one valid value, "base64". If the value is base64 and the inner content of the image tag must be a base64-encoded image. If the mode is not set then the content of the tag is a url pointing to the image.

This explanation means that we already support what you need, so we should be good.
For this issue we should simply make sure that this explanation gets into the docs.

I'm considering this thread closed unless anybody disagrees.
Thanks!

- Cassie

John Hjelmstad

unread,
Apr 28, 2008, 6:06:57 PM4/28/08
to opensocial-an...@googlegroups.com
Slightly tweaked text:

"The Icon element has a mode and a type attribute. The type attribute is the mime type of the image. The mode attribute only has one valid value: 'base64'. If the value is base64, then the inner content of the image tag must be a base64-encoded image. If the mode is not set then the content of the tag is a url pointing to the image."

For this to be closed, I'd posit we need to add this to the spec as well, integrating it appropriately into Rendering and Metadata request sections.

John
Reply all
Reply to author
Forward
0 new messages