Customization options — School Class Photo
-
Proof Number
(required)
(e.g. ROW-25-MB-001)
-
Print Options
(required)
-
8" x 6" (Unmounted, Prints Only) (£8)+8
-
10" x 8" (Unmounted, Prints Only) (£9)+9
-
8" x 6" (Mounted, Annotated with Text) (£27)+27
-
10" x 8" (Mounted, Annotated with Text) (£30)+30
-
8" x 6" (Annotated with Text & Framed) (£40)+40
-
…and 1 more
-
Second Photo Proof Number
(required)
— This option may appear depending on other selections.
-
Frame Colour
(required)
— This option may appear depending on other selections.
-1 ? "&" : "?") + params); }); document.querySelectorAll("[data-href*=\"/products/digital\"]").forEach(function(el){ if (el.dataset.jetParamsAdded === "1") return; el.dataset.jetParamsAdded = "1"; var href = el.getAttribute("data-href"); el.setAttribute("data-href", href + (href.indexOf("?") > -1 ? "&" : "?") + params); }); } setInterval(rewriteDigitalLinks, 500); setTimeout(rewriteDigitalLinks, 100); // ===== VISUAL BACKGROUND (non-destructive) ===== function applyBg(){ var host = document.querySelector(".konvajs-content"); if (!host || !imageUrl) return; host.style.backgroundImage = "url(" + JSON.stringify(imageUrl) + ")"; host.style.backgroundRepeat = "no-repeat"; host.style.backgroundPosition = "center"; host.style.backgroundSize = "contain"; host.style.backgroundColor = "#ffffff"; } var bgT = setInterval(applyBg, 250); // ===== CAPTURE (photo + Konva) → dataURL ===== function capture(cb){ cb = cb || function(){}; if (!window.Konva || !Konva.stages || !Konva.stages[0]) { cb(null); return; } var stage = Konva.stages[0]; try { var canvas = document.createElement("canvas"); var ctx = canvas.getContext("2d"); var canvasSize = 800; canvas.width = canvasSize; canvas.height = canvasSize; ctx.fillStyle = "#fff"; ctx.fillRect(0, 0, canvas.width, canvas.height); if (imageUrl) { var img = new Image(); img.crossOrigin = "anonymous"; img.onload = function(){ var imgW = img.naturalWidth; var imgH = img.naturalHeight; var maxDim = canvasSize * (PHOTO_SCALE_PCT / 100); var scale = (imgW > imgH) ? maxDim / imgW : maxDim / imgH; var w = imgW * scale; var h = imgH * scale; ctx.drawImage(img, (canvas.width - w) / 2, (canvas.height - h) / 2, w, h); setTimeout(function(){ stage.toImage({callback: function(kimg){ try { ctx.drawImage(kimg, 0, 0, canvas.width, canvas.height); } catch(_){} cb(canvas.toDataURL("image/jpeg", 0.7)); }}); }, 250); }; img.onerror = function(){ stage.toImage({callback: function(kimg){ cb(kimg && kimg.src || null); }}); }; img.src = imageUrl; } else { stage.toImage({callback: function(kimg){ cb(kimg && kimg.src || null); }}); } } catch(e){ cb(null); } } function storeThumb(thumb, customKey){ if (!thumb || typeof thumb !== "string") return false; if (!(thumb.indexOf("data:image") === 0 && thumb.length > MIN_THUMB_LEN)) return false; var key = customKey || photoId; if (!key) return false; try { sessionStorage.setItem("jet_thumb_" + key, thumb); } catch(_){} return true; } // ===== PRE-CAPTURE so digital-only adds have a thumb ===== (function precaptureLoop(i){ if (i > PRECAPTURE_TRIES) return; capture(function(d){ if (storeThumb(d)) return; setTimeout(function(){ precaptureLoop(i + 1); }, PRECAPTURE_GAP); }); })(1); // ===== ENSURE HIDDEN PROPERTIES ON FORM ===== function ensureProps(form, thumbId){ function setHidden(name, value){ var sel = "input[name=\"properties[" + name + "]\"]"; var el = form.querySelector(sel); if (!el) { el = document.createElement("input"); el.type = "hidden"; el.name = "properties[" + name + "]"; form.appendChild(el); } el.value = value || ""; } setHidden("_thumbnail_id", thumbId || photoId); setHidden("_Proof number", photoId); if (imageUrl) setHidden("_customer_photo", imageUrl); if (photoId && imageUrl) { var productUrl = window.location.pathname + "?photo_id=" + safeEncode(photoId) + "&customer_image=" + safeEncode(imageUrl); setHidden("_product_url", productUrl); } } // ===== SUBMIT HOOK (guarded, single handler) ===== function hookForms(){ document.querySelectorAll("form[action*=\"/cart/add\"]").forEach(function(form){ if (form.dataset.jetHooked === "1") return; form.dataset.jetHooked = "1"; form.addEventListener("submit", function onSubmit(e){ if (window.__JET_ADD_IN_PROGRESS) { e.preventDefault(); e.stopImmediatePropagation(); return; } window.__JET_ADD_IN_PROGRESS = true; e.preventDefault(); e.stopImmediatePropagation(); var captureFn = (window.__JET_DM_ACTIVE && window.__JET_DM_CAPTURE) ? window.__JET_DM_CAPTURE : capture; var thumbId = photoId + "_" + Date.now(); captureFn(function(thumb){ storeThumb(thumb, thumbId); ensureProps(form, thumbId); // Sync Group Names Module data at submit time — must be here // rather than on name entry, since Easify may re-render form // inputs between name entry and submission, wiping earlier writes. if (window.jetTeamNames && window.jetTeamNames.syncToForm) { window.jetTeamNames.syncToForm(form); } // Sync Unified Composer data at submit time — same pattern // as Group Names Module. Guard ensures inert on products // without the unified composer loaded. if (window.jetUnifiedComposer && window.jetUnifiedComposer.syncToForm) { window.jetUnifiedComposer.syncToForm(form); } if (window.__JET_DM_ACTIVE && window.__JET_DM_INJECT_PROPS) { window.__JET_DM_INJECT_PROPS(form); } try { HTMLFormElement.prototype.submit.call(form); } finally { window.__JET_ADD_IN_PROGRESS = false; } }); }, {capture: true, once: true}); }); } setTimeout(hookForms, 300); setTimeout(hookForms, 900); setTimeout(hookForms, 1800); } catch (err) { console && console.error && console.error("[JET v2.5.12] Intercept error", err); } })(); '>
window.innerWidth){ magDiv.style.left = (evt.clientX - size - offset) + 'px'; } if(rect.bottom > window.innerHeight){ magDiv.style.top = (evt.clientY - size - offset) + 'px'; } var canvasRect = canvas.getBoundingClientRect(); var mouseX = evt.clientX - canvasRect.left; var mouseY = evt.clientY - canvasRect.top; var sourceSize = size / zoom; var sourceX = mouseX - sourceSize / 2; var sourceY = mouseY - sourceSize / 2; ctx.clearRect(0, 0, size, size); ctx.fillStyle = '#f0f0f0'; ctx.fillRect(0, 0, size, size); try{ if(bgImg && bgReady && bgImg.complete && bgImg.naturalWidth > 0){ var bgSizeVal = parseFloat(bgSize); if(isNaN(bgSizeVal)) bgSizeVal = 85; var scale = bgSizeVal / 100; var bgWidth = canvasRect.width * scale; var bgHeight = (bgImg.naturalHeight / bgImg.naturalWidth) * bgWidth; var bgX = (canvasRect.width - bgWidth) / 2; var bgY = (canvasRect.height - bgHeight) / 2; var scaleX = bgWidth / bgImg.naturalWidth; var scaleY = bgHeight / bgImg.naturalHeight; var imgSourceX = (sourceX - bgX) / scaleX; var imgSourceY = (sourceY - bgY) / scaleY; var imgSourceSizeX = sourceSize / scaleX; var imgSourceSizeY = sourceSize / scaleY; ctx.drawImage(bgImg, imgSourceX, imgSourceY, imgSourceSizeX, imgSourceSizeY, 0, 0, size, size); } ctx.drawImage(canvas, sourceX, sourceY, sourceSize, sourceSize, 0, 0, size, size); }catch(err){ console.log('[MAG] Draw error:', err); } }); console.log('[MAG] Ready'); }, 100); }, 2000); })(); ">