| Title: | Product Photo Planning Helpers |
|---|---|
| Description: | Helpers for preparing ecommerce product photo planning tables, prompt sheets, and public ProductShot AI workflow URLs. The package works offline and focuses on data-frame preparation for product image batches. |
| Authors: | Baiwei Chu [aut, cre] |
| Maintainer: | Baiwei Chu <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-06-24 13:29:27 UTC |
| Source: | https://github.com/cran/productshotaiR |
Build a product-photo prompt planning table from ecommerce product metadata.
make_prompt_sheet(products, background_style = "clean studio background")make_prompt_sheet(products, background_style = "clean studio background")
products |
A data frame with product metadata. |
background_style |
Default background direction for generated product photos. |
A data frame ready to export as a prompt planning CSV.
make_prompt_sheet(data.frame(product_name = "Red Shoe"))make_prompt_sheet(data.frame(product_name = "Red Shoe"))
Normalize product image metadata for product-photo batch planning.
normalize_image_manifest(data)normalize_image_manifest(data)
data |
A data frame with a |
A data frame with file, product_slug, workbench_url, and notes.
normalize_image_manifest(data.frame(file = "Red Shoe.jpg"))normalize_image_manifest(data.frame(file = "Red Shoe.jpg"))
Normalize ecommerce product metadata for ProductShot AI prompt planning.
normalize_product_metadata(products)normalize_product_metadata(products)
products |
A data frame with at least a |
A normalized data frame with product_name, product_slug, and image_path.
normalize_product_metadata(data.frame(product_name = "Red Shoe"))normalize_product_metadata(data.frame(product_name = "Red Shoe"))
Create a prompt planning table for ecommerce product-photo batches.
productshotai_prompt_sheet(products)productshotai_prompt_sheet(products)
products |
Character vector of product names. |
A data frame suitable for CSV export.
productshotai_prompt_sheet(c("Red running shoe"))productshotai_prompt_sheet(c("Red running shoe"))
Build a ProductShot AI public URL.
productshotai_url(page = "home")productshotai_url(page = "home")
page |
Page key. Supported values are |
A URL string.
productshotai_url("workbench")productshotai_url("workbench")
Return public ProductShot AI URLs used by product-photo workflow helpers.
productshotai_urls()productshotai_urls()
A named list of public ProductShot AI URLs.
productshotai_urls()$workbenchproductshotai_urls()$workbench
Write a ProductShot AI product-photo prompt planning CSV.
write_prompt_template(products, file)write_prompt_template(products, file)
products |
A data frame with product metadata. |
file |
Output CSV file path. |
The output file path, invisibly.
tmp <- tempfile(fileext = ".csv") write_prompt_template(data.frame(product_name = "Red Shoe"), tmp)tmp <- tempfile(fileext = ".csv") write_prompt_template(data.frame(product_name = "Red Shoe"), tmp)