General
- File extenions should always be lowercase.
- Where possible, favor lossless file formats (e.g. png), generated using original source files (e.g. ai, psd or pdf) or high resolution images.
When using the INN app template
- Use the assets rig. Do not commit assets to the project repository.
- Images should be stored with the following path convention:
www/assets/img/$SECTION_NAME/$SLUG$VERSION.png
$SECTION_NAME
can be whatever project specific section slug is appropriate (chapter, slide, page, etc.)$SLUG
should follow URL conventions: all lowercase, no whitespace, dashes instead of underscores.$VERSION
may be:
$VERSION | aspect ratio | target | resolution |
---|---|---|---|
original | archival | full | |
-16x9 | 16x9 | archival | full |
-sq | square | archival | full |
-16x9-d | 16x9 | desktop | 1200x675 |
-16x9-m | 16x9 | mobile | 400x225 |
-sq-m | square | mobile | 420x420 |