Photo Magnet Maker - fotojockovic.com/magnets ============================================= Photos and text on sublimation fridge magnets: six shapes (square, rectangle, round, oval, heart, shield) in the sizes of products.js, one magnet per photo (batches), crop and zoom inside the magnet's shape, text, a 3D preview (front, angle, back with the magnet, and a fridge scene with the whole batch), a 300 DPI print file of one magnet (PNG, PDF with the outline on a non-printing layer, outline SVG), gang sheets on A4 / A3 / Letter (PDF with all sheets and non-printing cut lines, PNG, cut-line SVG; optionally mirrored and with printed cut lines) and mockups. Everything runs in the browser; no photo leaves the device. Our own work (MIT, Foto Jocković): the product definitions (products.js), the layout engine and magnet outlines (layout.js; drawn from a few measured proportions per shape, not traced), the gang-sheet layout and its banded PNG / multi-page PDF writers (sheet.js), the procedural 3D magnet (a rigid magnet about 2 mm thick: a thin white-coated plate with the print on top of a black magnet sheet) and the fridge scene (enamel doors, steel handle), all textures generated from seeded noise at run time in src/view3d.js (no third-party models, textures, photos of products or HDRIs), the studio lighting, the UI, texts and translations, og.jpg, the start-screen pictures (img/hero.webp, img/shape-*.webp) and the hub card pictures (all rendered by this tool). The single-magnet PNG (pHYs / sRGB), PDF (with an optional-content guide layer) and SVG writers are the site's shared /static/tools/common/printfile.js (also used by /mug and /stone). Product shapes: the names and codes of a sublimation-blank supplier's "magneti za frižider" list were read (text only, no images; the list gives no sizes) to choose realistic shapes; sizes are common values, see products.js ([V]/[I]). Third-party code shipped to the browser: 1. three.js r186 (npm three 0.186.1), incl. OrbitControls and RoundedBoxGeometry from its examples, three.js authors - MIT. https://github.com/mrdoob/three.js Bundled and minified into view3d.js (loaded when the editor opens). Licence: LICENSE-three.txt 2. Fonts (SIL Open Font License 1.1), self-hosted under /static/tools/common/fonts// with each OFL.txt: Inter Tight, Instrument Serif (UI); Montserrat, Playfair Display, Caveat, Pacifico, Lobster, Noto Sans (text on the magnet). Rules in /static/tools/mug/fonts.css (shared with the mug maker). 3. Shared site code: /static/tools/common/i18n.js, rail.js, sheets.js, apphdr.js, printfile.js and the text-font list of /static/tools/mug/layout.js (Foto Jocković). Sample photos (not modified; thumbnails in img/ were made from them): portrait.jpg "Smile with Freckles (Unsplash).jpg" by Gabriel Silverio, Wikimedia Commons, CC0 1.0 https://commons.wikimedia.org/wiki/File:Smile_with_Freckles_(Unsplash).jpg (/collage sample) dog.jpg "Earnest dog in the grass (Unsplash).jpg" by Rodion Kutsaev, Wikimedia Commons, CC0 1.0 https://commons.wikimedia.org/wiki/File:Earnest_dog_in_the_grass_(Unsplash).jpg (/sketch sample) beach.jpg "Dog owner walking his dogs on the beach..JPG", Wikimedia Commons, CC0 (/collage sample) butterfly.jpg "Agraulis vanillae at Isla Margarita.jpg", Wikimedia Commons, CC0 1.0 (/collage sample) sunset.jpg "Juan Griego Sunset.jpg", Wikimedia Commons, CC0 1.0 https://commons.wikimedia.org/wiki/File:Juan_Griego_Sunset.jpg (/collage sample) mountains.jpg "Cloudy Skies Over Mountains (Unsplash).jpg", Wikimedia Commons, CC0 (/collage sample) Build-time only (not shipped): esbuild (MIT); puppeteer-core (Apache-2.0) and ffmpeg for tests and images.