Michael Wechner wrote:
Thorsten Scherler wrote:
El mié, 26-10-2005 a las 11:57 +0200, Jann Forrer escribió:
On Wed, 26 Oct 2005, Michael Wechner wrote:
Jann Forrer wrote:
Hi
I did modify the upload uecase a little bit to save the height and the
width of a image in the metadata.
I guess you mean the metadata of the image doc, right?
yes
[ ... ]
Applying the change respective entry in the <image>.gif.meta
looks like (lenya-1.2.X):
....
<dc:format>image/gif 505 x 48 pixels</dc:format>
...
Does that make sense or do you have other ideas where this information
should be stored?
I think something like
<img:height>...</img:height>
<img:width>...</img:width>
<mime-type>...</mime-type>
would be more handy, because it requires less parsing ;-)
That is certainly true but that would mean to have a mix of
dublincore and non dublincore metadata as:
<dc:metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
....
....
<dc:format>image/jpeg</dc:format>
<img:height>...</img:height
<img:width>...</img:width>
</dc:metadata>
-1
the dc:format looks good
what do you mean dc:format looks good? To be honest I don't think DC
was designed for machine reading initially (whereas I might be wrong)
and this way all kind of things can go wrong ...
dc:format is the official place to put dimension according to the spec.
Often, dimension information is related to the format of the document,
i.e. height and width are of no use for a OpenDocument, whereas for
image/png it's meaningful. So it's not far off to define the dimension
(or any other information valuable for processing) dependent on and
together with the format (mime-type).
I think it's better to save it in a separate tag as suggested above with
a non-dc namespace. Also see
http://www.ukoln.ac.uk/metadata/resources/dc/dc-format-wg/review2413.html
I agree that it is not user-friendly because it needs some extra
parsing, but this way we stay with the boasted standards.
- Felix
Michi
The rest should go into lenya:internal.
salu2
But as you said that requires less parsing :-)
--
Felix Röthenbacher [EMAIL PROTECTED]
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]