Package 'productshotaiR'

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

Help Index


Build a Product Photo Prompt Sheet

Description

Build a product-photo prompt planning table from ecommerce product metadata.

Usage

make_prompt_sheet(products, background_style = "clean studio background")

Arguments

products

A data frame with product metadata.

background_style

Default background direction for generated product photos.

Value

A data frame ready to export as a prompt planning CSV.

Examples

make_prompt_sheet(data.frame(product_name = "Red Shoe"))

Normalize product image metadata

Description

Normalize product image metadata for product-photo batch planning.

Usage

normalize_image_manifest(data)

Arguments

data

A data frame with a file column.

Value

A data frame with file, product_slug, workbench_url, and notes.

Examples

normalize_image_manifest(data.frame(file = "Red Shoe.jpg"))

Normalize Product Metadata

Description

Normalize ecommerce product metadata for ProductShot AI prompt planning.

Usage

normalize_product_metadata(products)

Arguments

products

A data frame with at least a product_name column.

Value

A normalized data frame with product_name, product_slug, and image_path.

Examples

normalize_product_metadata(data.frame(product_name = "Red Shoe"))

Create a prompt planning table

Description

Create a prompt planning table for ecommerce product-photo batches.

Usage

productshotai_prompt_sheet(products)

Arguments

products

Character vector of product names.

Value

A data frame suitable for CSV export.

Examples

productshotai_prompt_sheet(c("Red running shoe"))

Build a ProductShot AI public URL

Description

Build a ProductShot AI public URL.

Usage

productshotai_url(page = "home")

Arguments

page

Page key. Supported values are home, workbench, pricing, blog, contact, privacy, terms, refund_policy, and zh_home.

Value

A URL string.

Examples

productshotai_url("workbench")

ProductShot AI Public URLs

Description

Return public ProductShot AI URLs used by product-photo workflow helpers.

Usage

productshotai_urls()

Value

A named list of public ProductShot AI URLs.

Examples

productshotai_urls()$workbench

Write a Prompt Sheet Template

Description

Write a ProductShot AI product-photo prompt planning CSV.

Usage

write_prompt_template(products, file)

Arguments

products

A data frame with product metadata.

file

Output CSV file path.

Value

The output file path, invisibly.

Examples

tmp <- tempfile(fileext = ".csv")
write_prompt_template(data.frame(product_name = "Red Shoe"), tmp)