@extends('layouts.app') @section('title', 'Product AI Import – Setting') @section('content')

← Setting

Product AI Import

Defaults for crop, compression, limits, and Shopify draft creation. Work happens in Product AI Import.

@if ($errors->any())
@endif
@csrf

Image output

Matches your Shopify theme product card ratio (Landscape 1.25:1 by default).

WebP recommended for ~150 KB target.
Default 2000×1600 for 1.25:1.
Use Contain for product/Enhance photos (keeps white breathing room). Cover crops edges tight — usually too aggressive for bracelets.

Video (Prepare / Shopify compress)

Applied in Prepare after Enhance — not before Google Omni. Same Image output aspect (1.25:1): contain + white pad (no cover crop — keeps the full jewelry). Omni’s “Aspect ratio” only affects the AI step. Target under ~2–3 MB is safer for mobile.

Lower = higher quality. Default 19.

AI prompts (editable defaults)

These guide title, description, and lifestyle image generation. Title style: 3 options (Clean / Design-first / Detailed), always … Gold … without Yellow/White/Rose, CT only when carats exist (plain gold chains omit CT). Notes for karat/carats + photos for design. Lifestyle: mark multiple reference angles; prompt must keep design identical. Placeholders: @{{product_type}}, @{{wear_context}}, @{{product_details}} (prices stripped).

Used as-is for OpenAI. For Google it is inserted into the Google lifestyle fidelity template below via @{{merchant_prompt}}.
Only sent when generating with Google. Placeholders: @{{image_count}} @{{merchant_prompt}}. Does not change OpenAI.
Same angle/color/background/design — polish quality only. Placeholder: @{{product_type}}. Used as-is for OpenAI.
Google Enhance uses this prompt alone (not the OpenAI enhance prompt above). Placeholders: @{{image_count}} @{{merchant_prompt}} (short product context only).

Video Enhance (Google Omni)

Enhance wizard: trim to ~9s without compressing, send to Gemini Omni Flash, then Prepare compresses for Shopify. Requires a paid GOOGLE_AI_API_KEY. Separate from photo enhance prompts above.

Under 10s for Omni. Default 9.
Omni only supports 16:9 / 9:16. Use 16:9 like AI Studio. Shopify 1.25:1 is applied in Prepare.
Omni only — match AI Studio: keep background, boost sparkle/reflections. Prepare letterboxes Shopify video to 1.25:1 (contain + white).

Lifestyle & Shopify

Shared Lifestyle / Enhance briefs above go to both providers; Google also gets its fidelity wrappers. Titles & description stay on OpenAI. Google needs GOOGLE_AI_API_KEY in .env. This is the default for Auto mode. On Enhance / Lifestyle you can still pick OpenAI or Google per generation.
You choose which uploaded photo is the source.
Optional polish step. You pick which enhances replace originals.
Used as the Enhance Product Scale default from Shopify Type / Category. Rings usually ~55%. Pendants usually ~65% (config default). If Apply logs type_default=40%, this Pendants field is saved as 40 in Settings — set it back to 65 and save.
Titles & description always use OpenAI.
Used when provider is OpenAI (Enhance + Lifestyle).
Used when provider is Google. Empty = env default (Nano Banana / gemini-2.5-flash-image).
Open Product AI Import
@push('styles') @include('setting.partials.section-styles') @endpush @endsection