Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.32 KB

assets.md

File metadata and controls

26 lines (20 loc) · 1.32 KB

Best Practices for Assets

Photos

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:
$VERSIONaspect ratiotargetresolution
originalarchivalfull
-16x916x9archivalfull
-sqsquarearchivalfull
-16x9-d16x9desktop1200x675
-16x9-m16x9mobile400x225
-sq-msquaremobile420x420