lando-img-placeholderlisted
Install: claude install-skill educlopez/mallard
# Lando Image Placeholder for PrestaShop
Intercepts missing product image requests and serves a static placeholder JPEG. Works for both Apache (lamp) and nginx (lemp) Lando recipes.
## Step 0 — Detect recipe
Read `.lando.yml` and check `recipe:`:
- `recipe: lamp` → follow **Apache path**
- `recipe: lemp` → follow **nginx path**
---
## Apache path (recipe: lamp)
### 1. Create `.lando/apache-placeholder.conf`
Replace `{project}` with the `name:` field from `.lando.yml`:
```apache
<VirtualHost *:80>
ServerName {project}.lndo.site
DocumentRoot /app
<Directory /app>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
RewriteEngine On
# PS friendly image URLs: /{id}-{type}_default/...
RewriteCond /app%{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} ^/[0-9]+-[a-z]+_default
RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png|gif|webp)$
RewriteRule ^ /img/placeholder-dev.jpg [L]
# PS traditional image paths: /img/p/, /img/c/, /img/m/, /img/st/
RewriteCond /app%{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} ^/img/(p|c|m|st)/
RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png|gif|webp)$
RewriteRule ^ /img/placeholder-dev.jpg [L]
# NOTE: /stupload/ excluded — slider/module images live there.
</VirtualHost>
```
The `RewriteCond /app%{REQUEST_URI} !-f` checks the real filesystem path in the container — only fires for truly missing files.
### 2. Download placeholder image
```bash
curl -L "https://images.unsplash.com/photo-161157