DEV Community

Denis
Denis

Posted on

Devlog: How Our AI Agents Built the Product Screenshot & Device Mockup Generator

Devlog: How Our AI Agents Built the Product Screenshot & Device Mockup Generator

In a world where visual communication is paramount, the ability to quickly and effectively present your digital products is essential. That's why at Pixel Office, we're excited to launch our latest creation, brought to life by our AI agents: the Product Screenshot & Device Mockup Generator. This tool is designed to simplify the creation of professional marketing materials for apps and websites, enabling developers, marketers, and designers to create stunning visuals in moments.

The Technical Challenge: From Concept to Implementation

The primary challenge was to create a flexible and intuitive web application that allows users to upload their own screenshots and seamlessly place them within realistic device frames, with full control over the aesthetic. This involved complex canvas manipulation, client-side image processing, and the implementation of a robust system for managing user permissions and payments.

The Role of Our AI Agents

The development of this tool was a testament to the efficient collaboration of our specialized AI agents:

  • Klára (AI Designer): Klára was responsible for the overall visual concept and user experience (UX/UI). She designed a wide array of modern device frames (smartphones, tablets, laptops, desktops) and diverse background options (gradients, abstract patterns, solid colors). Her work ensured that the tool is not only functional but also aesthetically pleasing and easy to navigate. Thanks to Klára, users have intuitive controls for adjusting size, rotation, shadows, and adding text overlays.
  • Jan (AI Developer): Jan delved into the heart of the technical implementation. He was responsible for programming the dynamic user interface, which handles image uploads, canvas manipulation for placing screenshots into frames, applying transformations, and generating final outputs. A crucial part of his work was integrating the system for free and premium access levels.

"To manage access and user data, I implemented Firebase, which provides fast and secure authentication and straightforward management of locked feature states. It's crucial to keep track of the number of free actions and the user's status, whether they have full access unlocked. This ensures a fair distinction between the free and paid versions and a smooth user experience when upgrading to premium."

// Firebase Configuration
const firebaseConfig = {
    apiKey: "AIzaSyFakeKeyForShowcaseHubAuthTestingOnly",
    authDomain: "pixeloffice-hub.firebaseapp.com",
    projectId: "pixeloffice-hub",
    storageBucket: "pixeloffice-hub.appspot.com",
    messagingSenderId: "1234567890",
    appId: "1:1234567890:web:abcdef123456"
};
if (!firebase.apps.length) {
    firebase.initializeApp(firebaseConfig);
}
const auth = firebase.auth();
const googleProvider = new firebase.auth.GoogleAuthProvider();

// Global Variables
const widgetSlug = "product-screenshot-device-mockup-generator";
let isUnlocked = localStorage.getItem(`pv_unlocked_${widgetSlug}`) === 'true';
let actionCount = parseInt(localStorage.getItem(`pv_actions_${widgetSlug}`) || '0', 10);
const maxFreeActions = 3;
let currentUser = null; // To store Firebase user object
  • Jan (AI Developer)
  • Martin (AI QA Tester): Martin meticulously tested all aspects of the generator. He ensured that image uploads functioned flawlessly, that all controls responded correctly, and that exported images had the desired quality and resolution. He thoroughly vetted both the free and premium versions to guarantee a seamless transition and full functionality across all features.
  • Tomáš (AI DevOps Specialist): Tomáš ensured the smooth deployment and optimization of the tool for stable operation. Thanks to his work, the generator is available 24/7 and ready to handle high loads.

How it Works in Practice

Users simply upload their screenshot, select their preferred device frame, and customize the background and other visual elements using intuitive sliders and options. The tool instantly visualizes changes on the canvas. Once satisfied, the result can be exported.

Free vs. Premium Version

  • Free Version: Allows for the export of 3 images at standard resolution.
  • Premium Version: For a one-time payment, users gain lifetime access to high-resolution exports (e.g., 4K), an expanded library of premium device frames, advanced styling controls, batch processing capabilities, and the removal of any watermarks.

Try Our Generator Now!

We are confident that this tool will significantly speed up and simplify your work in creating marketing materials. There's no better way to understand its power than to experience it firsthand.

Visit the live demo and start creating! (https://pixeloffice.eu/showcase/product-screenshot-device-mockup-generator/)

Top comments (0)