Библиотека / Изображения, видео и аудио
Изображения, видео и аудио
Ежечасное удаление фона с изображений товаров WooCommerce через LassoCut
Запускается каждый час, находит товары WooCommerce с необработанными изображениями, удаляет с них фон через LassoCut и обновляет фото товаров, не более 20 за запуск.
Что делает
## Remove backgrounds from new WooCommerce product images with LassoCut ### Who it's for WooCommerce store owners who want every product photo on a clean white background for their shop, Google Shopping, Amazon or eBay, without editing images by hand. ### How it works 1. Every hour (or Run now) reads your Settings. 2. Get all products lists the catalogue. Products that already carry the lassocut_processed marker or have no image are skipped, and each run is capped (20 products by default). 3. For each product, the main image is downloaded, LassoCut removes the background and puts the product on white (JPG). 4. The new image is uploaded to the media library and becomes the main product image. The original stays in the gallery and in the library, and the product gets the marker so it is never processed (or billed) twice. 5. A failed product (broken image, no credits left...) is recorded and the loop moves on. Build run summary counts processed products, failures and credits used. ### Setup 1. Install the verified community node n8n-nodes-lassocut (Settings > Community nodes). 2. Create a free account at https://www.lassocut.com and add your API key as a LassoCut API credential. 3. WooCommerce > Settings > Advanced > REST API: create a Read/Write key and add it as a WooCommerce API credential (used by Get all products and Set as main product image). 4. Users > Profile > Application Passwords: create one and add it as a Wordpress API credential (username + application password) on Upload to media library. 5. Put your store URL in Settings. Your store must use https (WooCommerce keys are refused over plain http). 6. Test with Run now, then publish the workflow. ### Requirements - WooCommerce 5+ on https, and a LassoCut account. Free accounts get 50 previews a month (up to 10 a day). A full-size result costs 1 credit. Credit packs start at $9 for 100 credits, and credits never expire. ### How to customise - Settings: background colour (ffffff, f5f5f5...), size (preview is free for tests), format, marker name, products per run, keep the original in the gallery or not. - Replace the schedule with a WooCommerce Trigger (product.created) if n8n has a public URL. - Send the summary to Slack or email after Build run summary. - To redo a product, delete its lassocut_processed custom field. ### Disclosure Built by the founder of LassoCut, who maintains the n8n-nodes-lasso
Шаги
- Every hour
- Run now
- Settings
- Get all products
- Keep products to process
- Cap products per run
- Loop over products
- Download main image
- Remove background with LassoCut
- Upload to media library
- Set as main product image
- Record success
- Record failure
- Build run summary
Похожие автоматизации
Изображения, видео и аудиоУдаление фона с фотографий из Google Drive с LassoCut и запись в Google SheetsШагов: 17Оповещения и уведомленияУведомление Mattermost о новых заказах WooCommerceШагов: 3Оповещения и уведомленияПубликация новых товаров WooCommerce в SlackШагов: 3Оповещения и уведомленияОповещение в Slack о возвратах WooCommerce свыше 100Шагов: 4