πŸ–ΌοΈ

Watermark & Resize

The ultimate E-commerce tool: Resize product photos to square (1000x1000) AND add your brand logo in one go.

Image ⭐⭐⭐ Advanced ⏱️ 10 minutes

😫 The Pain Point

Shopee/Lazada requires all images to be 1:1 Square. And you want your shop logo in the corner to prevent theft. Doing 2 steps (Crop + Stamp) for 100 products = 200 actions.

πŸš€ Agentic Solution

The Pipeline: Chains multiple image operations into one command.

Key Features:

  • Padding: If image is rectangular, it adds white padding to make it square (instead of cropping content).
  • Positioning: Logo is placed 20px from the bottom-right corner automatically.

βš”οΈ Phase 1: Commander (Quick Fix)

For a new product launch.

Prompt:

β€œI have a folder of product photos. 1. Resize them to fit within 1000x1000 px, adding white padding to make them perfect squares. 2. Paste logo.png in the bottom-right corner. Save to β€˜Processed’.”

Result: Shop-ready photos.

πŸ—οΈ Phase 2: Architect (Permanent Tool)

For Shop Owners.

Engineering Prompt:

**Role:** Python Content Pipeline Dev
**Task:** Create an "E-commerce Image Processor".
**Requirements:**
1.  **GUI:**
    *   Select Input Folder.
    *   Select Logo File.
    *   Input: Target Size (Default 1000).
    *   Position: Top-Left, Bottom-Right, etc.
    *   "Run Batch" button.
2.  **Logic:**
    *   **Step 1 (Square):** Create new white image (1000x1000). Paste resized photo in center.
    *   **Step 2 (Watermark):** Calculate coordinates (Width - LogoWidth - Margin). Paste alpha composite.
3.  **Deliverables:** `shop_images.py`, `run.bat` (Windows), `run.sh` (Mac).

🧠 Prompt Decoding

  • Square Padding: This is E-commerce 101. If you simple force resize a 4:3 photo to 1:1, it stretches. The β€œPadding” logic preserves the aspect ratio while meeting platform requirements.

πŸ› οΈ Instructions

  1. Copy Prompt -> Paste -> Run.
  2. Select Photos -> Select Logo -> Run.

Related Workflows

Explore other categories

πŸ“¬

Get Started with Agentic Working

Subscribe to receive updates from AgenticWorking.io

πŸ“– Free eBook Guide πŸ“¦ 7 Ready-to-use Scripts πŸ”” Weekly Tips

No spam, unsubscribe anytime. Join 1,000+ subscribers.