← ClaudeAtlas

lando-img-placeholderlisted

Sets up a static image placeholder for local Lando PrestaShop development so broken/missing product images show a nice placeholder instead of broken icons. Use this skill when the user says "placeholder de imagenes en lando", "lando image placeholder", "imagenes rotas en lando", "broken images in lando", or wants to avoid downloading hundreds of product images for local development. Trigger proactively whenever the user is working on a Lando PrestaShop project and mentions broken images or missing product photos.
educlopez/mallard · ★ 0 · AI & Automation · score 75
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