Difference between revisions of "Metadata"

Jump to navigation Jump to search
681 bytes added ,  09:09, 13 April 2022
m
(Add Illustration metadata.)
(3 intermediate revisions by 3 users not shown)
Line 29: Line 29:
! Date
! Date
| yes
| yes
| create date (ISO - YYYY-MM-DD)
| ZIM creation date (ISO - YYYY-MM-DD)
| ''2009-11-21''
| ''2009-11-21''
|-
|-
Line 82: Line 82:
| mwoffliner 1.2.3
| mwoffliner 1.2.3
|-
|-
!Illustration_[height]x[width]
!Illustration_[height]x[width]@[scale]
|yes
|yes
|A png image (resolution [height] by [width]) to illustrate the zim file.
|A png image (resolution [height] by [width]) to illustrate the zim file.
This must be a binary content (png) with mimeytpe `image/png`.
This must be a binary content (png) with mimeytpe `image/png`.


`Illustration_48x48` is mandatory. Others are optional.
We follow the same specification than freedesktop  https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html for the size and scale of the icon.
 
<code>height</code>, <code>width</code>, <code>scale</code> describe the '''target''' size (where the icon is intended to be displayed) :
 
- <code>Illustration_48x48@1</code> is a 48x48 pixels image to be displayed as a 48x48 icon on a scale 1 screen.
 
- <code>Illustration_48x48@2</code> is a 96x96 pixels image to be displayed as a 48x48 icon on a scale 2 screen.
 
- <code>Illustration_96x96@1</code> is a 96x96 pixels image to be displayes as a 96x96 icon on a scale 1 screen.
 
 
<code>Illustration_48x48@1</code> is mandatory. Others are optional.
!
!
|}
|}
Line 93: Line 104:
== Favicon (Old zim file) ==
== Favicon (Old zim file) ==


Old zim file my have a illustration in <code>-/favicon</code> (it can be a redirection to the real content).
Old zim file may have a illustration in <code>-/favicon</code> (it can be a redirection to the real content).


Reader must be able to read the illustration using this path.
Reader must be able to read the illustration using this path.
31

edits

Navigation menu