Thumbnails and screenshots
This page is for developers and designers who give a site package its picture. The thumbnail is the first thing an administrator sees of a site package: the setup wizard shows it beside every site package it offers, and the package page shows it next to the details. No thumbnail is enforced; without one the wizard shows a default picture. Every shipped site package has one, and the package server carries a copy for the index.
Contents
- The thumbnail in package.xml
- Where the setup wizard takes the picture from
- The thumbnail on the package server
- The image file list
- What the shipped packages carry
- Screenshots
- Checklist
- Related pages
The thumbnail in package.xml
A thumbnail is a file list of type thumbnail in the file collection named default:
<files>
<collection name="default">
<file-list type="thumbnail" variable-name="thumbnail">
<file name="thumbnail.png" md5sum="77a7bc0cc6e1e5138ca7a6e39a130307" />
</file-list>
</collection>
</files>The file goes in the archive at files/<collection>/<type>/<name>, so here
files/default/thumbnail/thumbnail.png (eZPackage::fileItemPath() in kernel/classes/ezpackage.php). Two
details are fixed by the code:
- The collection must be
default. Thethumbnail-listattribute of a package isthumbnailList( 'default' ), so a thumbnail in any other collection is never shown. - Only the first thumbnail is used, by the setup wizard and by the package page alike.
The md5sum attribute is read and written back, but nothing that imports or installs a package checks it against
the file. Keep it correct anyway: it is the only record of which picture the definition was written for.
Where the setup wizard takes the picture from
The site type step (kernel/setup/steps/ezstep_site_types.php, template
design/standard/templates/setup/init/site_types.tpl) picks one picture per site package, in this order:
| Order | Source | When |
|---|---|---|
| 1 | The package's own first thumbnail (thumbnail_path) | The package is already imported on this installation |
| 2 | thumbnail_url of the package's entry in index.xml | The package is only on the package server, and (from 6.0.15 on) the address is http:// or https:// |
| 3 | design/standard/images/setup/eZ_setup_template_default.png | Neither exists |
So the same package can show two different pictures: the server's before it is imported and its own afterwards. The 7x source repository recorded the fix for that on 2026-10-02:
Updated: The multisite packages carry the Exponential multisite picture as their thumbnail, the one the package server shows for them, so the setup wizard shows the same picture for a package it already has as for one it would download.The thumbnail on the package server
Each site package entry of the 6.0.15 index.xml has a thumbnail_url of the form
https://exponential.packages.exponential.earth/exponential/6.0/6.0.15/thumbnails/<name>.png, for example
thumbnails/sevenx_multisite.png.
The thumbnails/ folder of that release holds 13 PNG files: one for each of the 12 site packages in the index,
and sevenx_site_paypal.png, which no index entry uses. The attribute format is on
The index.xml format.
The image file list
The 7x and CJW site packages carry a second picture, logo.png, as a file list of type image in the same
collection, stored at files/default/image/logo.png:
<file-list type="image" variable-name="image">
<file name="logo.png" md5sum="999280c75d36e8e24477c223a3230906" />
</file-list>None of the setup wizard steps in kernel/setup/steps/ reads it; it is a convention of the shipped packages. The
package page lists it among the package's files.
What the shipped packages carry
Checked on 2026-10-18 in the source repositories and the package server repository:
| Package | Thumbnail | Size | Same as the server's copy |
|---|---|---|---|
sevenx_multisite, sevenx_multisite_clean, cjw_multisite | thumbnail.png | 192 x 192 PNG | yes |
sevenx_site | thumbnail.png | 120 x 103 PNG | yes |
sevenx_site_clean | thumbnail.png | 120 x 103 PNG | no, the server's copy differs |
sevenx_design_blue, sevenx_design_cleangray, sevenx_design_gray | thumbnail.png | 120 x 103 PNG | no server copy (site styles are not listed with a thumbnail) |
All five site packages also carry logo.png (176 x 42 PNG). In sevenx_multisite and sevenx_multisite_clean
the md5sum written for logo.png did not match the file, which shows how quietly such a value goes stale. Fixed
on 2026-10-19: both packages now state the file's checksum, and the rebuilt packages are on the package server.
The three site styles sevenx_design_blue, sevenx_design_cleangray and sevenx_design_gray still carry stale
checksums for their thumbnail.png, site-colors.css and classes-colors.css (checked by importing them on
2026-10-19). In sevenx_design_gray the two stylesheets are empty files, so its checksums are not the only thing
to look at before that package is changed.
Screenshots
A package has no field for screenshots. The thumbnail is a small picture for choosing; it is not a preview of the site. Put screenshots of a site package where people decide whether to use it: in the README of its source repository, and in the pull request that submits it (Contribute your site package). Taking them well is covered by Screenshots for a theme and the Screenshot checklist.
Checklist
- To do: One PNG thumbnail in the
defaultcollection, atfiles/default/thumbnail/thumbnail.png. - To do: 192 x 192 like the multisite packages, or 120 x 103 like the classic ones.
- To do: The
md5suminpackage.xmlmatches:md5sum files/default/thumbnail/thumbnail.png. - To do: The same picture, byte for byte, as
thumbnails/<name>.pngon the package server. - To do:
thumbnail_urlin the index entry points at that file and answers 200. - To do: Screenshots in the source repository's README, not in the package.
md5sum files/default/thumbnail/thumbnail.png
grep -A2 'type="thumbnail"' package.xml
curl -s -o /dev/null -w '%{http_code}\n' https://packages.example.com/exponential/6.0/6.0.15/thumbnails/example_site.pngRelated pages
- Documentation requirements for site packages
- The requirements checklist
- The ezpkg file
- How the setup wizard uses packages
- What is on the package server
- Site packages: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.