--- theme: ./theme class: text-center highlighter: prism lineNumbers: true info: | ## Slides for Intro to SVG L&L drawings: persist: false download: true layout: intro title: Intro to SVG --- # Intro to SVG
expect(target_audience).toBeAny()
expect(🍚⏱).toYield(✅)
expect(🧠).toIncrease();
expect(🤔).andThen(😄)
---
---
# Raster vs Vector Images

---
# Image File Types
| File Extension | Description |
| --------------------------------------- | ---------------------------------------------------------------- |
| .gif | Graphics Interchange Format |
| .png | Portable Network Graphic |
| .jpg / .jpeg | Image format by Joint Photographic Experts Group |
| .webp | A superior image format of .png & .jpg |
| .svg | Scalable Vector Graphics |
---
# Image File Types
| File Extension | Color Modes | Compression | Usage |
| --------------------------------------- | ------------------------------------------------------ | --------------------------- | ---------------------------------------------------------------- |
| .gif | Indexed Color | Lossless | Animated images |
| .png | Greyscale, True Color, Alpha | Lossless (better than .GIF) | Static Line art, iconic graphics where transparency matters. |
| .jpg / .jpeg | True Color | Lossy | Photographs, realistic images of people, venues etc. |
| .webp | Depends on compression | Lossless / Lossy | A superior image format of .png & .jpg |
| .svg | Anything that can be specified using CSS color syntax. | NA | UI that requires to be redrawn accurately at different sizes |
---
# How to get SVG
1. Create SVG from scratch
2. Generate SVG
3. Extract from websites
---
layout: center
class: text-center
---
# Create SVG with 3 basic elements
`
---
layout: new-section
logoHeader: '/intro-to-svg-slides/terminal-box-fill.svg'
---
# JP flag in SVG