-
Notifications
You must be signed in to change notification settings - Fork 5
images
David Spreekmeester edited this page Jul 26, 2016
·
11 revisions
In general, Garp uses different types of images.
- Uploaded images - uploaded by a user
- Static images - used in templates
- Interface images - referred to from css
These are not part of the codebase, but instead uploaded by a user, f.i. in the cms. They are generally stored in (public)/uploads/images
on the local machine, or on Amazon S3. They also have a record in the database and they are relatable to other content. Their physical storage location is configured in application/configs/assets.ini
.
Generating scaled uploaded images
Rendering uploaded images in a view
These are part of the codebase and can't be uploaded by a user.
Render static images in a view
These are mostly generated by Gulp. They contain a hash in the filename, so that they are always versioned. An example would be a button-50db5f2cd4.png
.