<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><html>On Apr 30, 2008, at 12:41 AM, Charles Iliya Krempeaux wrote:</html><br class="Apple-interchange-newline"><blockquote type="cite">Hello,<br><br><div class="gmail_quote">On Wed, Apr 30, 2008 at 12:19 AM, Maciej Stachowiak <<a href="mailto:mjs@apple.com">mjs@apple.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d"><br> On Apr 29, 2008, at 11:54 PM, Charles Iliya Krempeaux wrote:<br> </div></blockquote><div><br>[...]<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br></div> In practice, these things usually do not matter when using an icon in the user interface. But the sizes available do matter. I would not want to download a 512x512 icon for use as an iPhone homescreen icon (it's not anywhere near the right size) but it is irrelevant whether the compression is lossy or how colors are represented. I would prefer a multisize icon with a wide size range for Mac OS X or Windows Vista but not for Windows XP or most mobile platforms.</blockquote> <div><br><br>True... for an iPhone that might be the case.  Or even Mac OS X or Windows Vista.  But it might become important in usages of this metadata beyond just icons.<br><br>For example, consider a photo blogging example...<br> <br><link rel="enclosure" type="image/png" width="64" height="48"  compressioning="lossless" coloring="paletted" href="A.png"><br><br><link rel="enclosure" type="image/png" width="640" height="480"  compressioning="lossless" coloring="truecolor" href="B.png"><br> <link rel="enclosure" type="image/png" width="640" height="480"  compressioning="lossless" coloring="grayscale" href="C.png"><br><br><link rel="enclosure" type="image/jpeg" width="2560" height="1920" compressioning="lossy" coloring="truecolor" href="D.jpg"> <br> <br><br>(The bottom <link> if the original image.  The 2 640x480 onews are scaled version... one color and one grayscale.  And the top one is a thumbnail.)</div></div></blockquote><div><br></div><div>Has anyone actually asked for this kind of functionality or is this a hypothetical use case? I don't think we should tie solving a real problem (the need to specify icons at different sizes and let the UA know these sizes) to an open-ended metadata annotation mechanism.</div><div><br></div><blockquote type="cite"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">If we have this new attribute(s) available on the <link> element, then it is very likely going to be used for other things besides just icons.<br> <br> You could use width and height for videos too.  What if video wants to be able to "declare" that the video has "closed captioning" embedded or not?!  Or what language the video file has audio for?!  ("hreflang" would almost work for that... if it let you specify more than one language.)  Or`what "ratings" that version of the video is?!<br> <br> <br> What I was getting at with this suggestion is that if we start adding the ability to specify all sorts of metadata about what's being linked to and go along the path of #1, then we likely need to create a kind of complex language to describe this.  (Something approaching the complexity of CSS.)  And perhaps that's complicating the <link> element too much.<br> <br> Maybe it's simpler to (do #2 and) just create a <link> for each thing.<br> </blockquote> <br></div> I'm not sure I understand this. Your proposal amounts to adding two new attributes to the <link> element, "width" and "height" (and possibly specifying a link of the same type to the same item multiple times). My proposal involves a single new attribute on <link>, with essentially the same information conveyed in a more compact way. Why does my proposal lead to a CSS-like general-purpose metadata language, but yours does not?<br> </blockquote></div><br>It leads to a CSS-like language only if we start adding more metadata in there besides just the width and height.<br><br>For example, this...<br><br><link rel="enclosure" type="image/xxx" width="640" height="480" compressioning="lossy" coloring="truecolor" href="A.xxx"> <br> <link rel="enclosure" type="image/xxx" width="1280" height="960" compressioning="lossy" coloring="truecolor" href="A.xxx"> <br><link rel="enclosure" type="image/xxx" width="2560" height="1920" compressioning="lossy" coloring="truecolor" href="A.xxx"> <br> <br>... could become...<br><br><link rel="enclosure" type="image/xxx" metadata="size:640x480, 1280x960, 2560x1920; compressioning:lossy; coloring:truecolor;" href="A.xxx"> <br clear="all"> <br>The "metadata" attribute is where you start to get a CSS-like language.  (Which seems to complicate the <link> element.)<br></blockquote></div><br><div>I'm not in favor of a CSS-like metadata language or a metadata attribute. I don't think your suggested extra attributes are very useful either so I am not sure how it is relevant to discuss different syntax alternatives for them. That being said, this:</div><div><br></div><div><link rel="enclosure" type="image/xxx" sizes="640x480 1280x960 2560x1920" compressioning="lossy" coloring="truecolor" href="A.xxx"> </div><div><br></div><div>Does not introduce a CSS-like metadata language any more than your first alternative. So I still do not see your point.</div><div><br></div><div>Regards,</div><div>Maciej</div><div><br></div></body></html>