TakeFotoTemplate
Purpose
The TakeFotoTemplate collection defines the template parameters for the VTO photo.
Its purpose is to configure the UI that will be visible in the generated picture, including backgrounds, watermarks, and layout settings.
Document schema
{
"bb_background_color": "string",
"bb_background_img": "string",
"bb_background_transparent": "number",
"bb_enabled": "boolean",
"bb_height": "number",
"bb_watermark": "string",
"bb_watermark2": "string",
"bb_watermark2_position": "string",
"bb_watermark_position": "string",
"bt_background_color": "string",
"bt_background_img": "string",
"bt_background_transaparent": "number",
"bt_enabled": "boolean",
"bt_height": "number",
"bt_watermark": "string",
"bt_watermark2": "string",
"bt_watermark2_position": "string",
"bt_watermark_position": "string",
"general_margin_watermarks": "number",
"general_watermark_size": "number",
"margin_center_watermark": "number",
"title": "string",
"watermark_center_size": "number"
}
Indexes
This collection does not have external indexes.
Query examples
// Fetch the Reference Doc from Firebase
const photoTemplateRefDoc = doc(db, "TakeFotoTemplate", takeFotoTemplateId);
// Get the Document Snapshot from the Reference Doc
const photoTemplateRefSnap = await getDoc(photoTemplateRefDoc);