lando-img-placeholder

Solid

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.

AI & Automation 3 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
20
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
educlopez
Repository
educlopez/mallard
Created
2 months ago
Last Updated
today
Language
Go
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

API & Backend Solid

lando-setup

Sets up a PrestaShop 8/9 project locally with Lando, or refreshes its database from the server. Full setup configures Lando, syncs app/config, picks a free port, imports the DB and fixes shop URLs; DB refresh mode only re-dumps and re-imports the database. Use when the user says "monta el proyecto", "setup lando", "prepara en local", "levanta el lando de X", "configura X en local", "actualízame la DB", "refresca la DB de X", "bájame la DB de X", "sync DB", or "quiero la DB actualizada de X".

3 Updated today
educlopez
Web & Frontend Solid

ps-watch

Sets up BrowserSync live-reload watcher for PrestaShop Panda child theme development in Lando. Auto-detects child theme name and Lando proxy URL. Watches child theme CSS/JS/TPL files and reloads the browser automatically on save. Use when working on PS frontend/maquetación in Lando and the user wants auto-reload, live reload, watcher, or is tired of reloading the browser manually after CSS changes.

3 Updated today
educlopez
AI & Automation Solid

ps-image-regen

Arregla zonas blancas (padding) en imágenes de productos PrestaShop y regenera thumbnails de forma segura sin bloquear Apache. Úsala cuando el usuario diga: "imágenes con blanco", "white zones en imágenes PS", "thumbnails con relleno blanco", "regenerar miniaturas PS", "regenerar thumbnails prestashop", "el admin de PS se queda colgado regenerando", "imágenes de productos con bordes blancos", "imágenes no llenan el contenedor", o cuando vea padding blanco en el listing de productos de una tienda PrestaShop. También aplica cuando hay que sincronizar comportamiento de generación de imágenes entre local Lando y servidor de staging/prod.

3 Updated today
educlopez