Comment gérer
les différents formats ?

Lors de l'upload

Formats non utilisés

Ralentit l'upload*

Avantages

Inconvénients

✔️ Simple à mettre en place
✔️ Performant à l'affichage

Dans le template

Performances
Redimensionnement synchrone

Avantages

Inconvénients

✔️ Pas de formats inutiles

<img src="<?= asset_path($image, 800, 600) ?>" />

Dans l'URL

Sécurité à prévoir
❌ Performances*

Avantages

Inconvénients

✔️ Pas de formats inutiles
✔️ Asynchrone par nature
✔️ Améliorable avec un CDN

 

<img src="http://asset.grafikart.fr/images/demo.jpg?w=800&h=600" />

Du code !

Made with Slides.com