Picture sizes
Does my system take pictures at the sizes screens and platforms use?
The picture-sizes preset builds a whole set of real test files for this question in one
command, and a manifest.json beside them saying how your system should react to each
file. Everything below is read from the program, at the defaults of this version.
What does it usually find?
- a limit on the width or the height set with one shape in mind that turns away another, such as a profile background 1584 px wide
- a thumbnail cut or squashed because the code expects a landscape picture and a portrait one arrives
- a picture with an odd height, such as 1200 x 627, refused by a step that only takes even sizes
- a 4K picture that runs out of time or memory on its way to a thumbnail, although the file itself is small
What is in the set?
At its defaults, as tfg preset show picture-sizes reports it:
| Files | 21 |
|---|---|
| Targets in its recipe | 21 |
| Total size | 4 178 420 B |
| Formats | jpg |
And what the manifest of that set expects from your system:
| Expected | Meaning | Files |
|---|---|---|
accept | Your system should take the file. | 21 |
What can you change?
| Setting | Takes | Default | What it does |
|---|---|---|---|
--groups |
group names separated by commas, or all |
all |
Which sizes the set holds: screens for the sizes of screens, avatars for profile pictures and social for covers, banners, posts and thumbnails. Leave it at all for every one of them. |
--content |
placeholder, test |
test |
What the picture shows. A test pattern is for checking how a file is read. A placeholder is a flat colour with words in the middle, for laying out a page before the real pictures exist. |
--format |
a format id from the formats page | jpg |
The format of every file in the set. It is a flag of the tool itself, and the preset only gives it a default. |
How do you run it?
See what the set would cost, build it, or take its recipe to edit:
tfg preset show picture-sizes
tfg generate --preset picture-sizes --out ./picture-sizes
tfg preset eject picture-sizes > picture-sizes.yaml
Or build on it in a recipe of your own, next to your tests:
version: 1
extends: preset:picture-sizes