Latest Updates

Documenting code, one commit at a time.

English 10 posts
×
PHP

Optimizing Asynchronous Video Processing in Breniapp

When dealing with computationally intensive tasks like video generation in Breniapp/brenia, asynchronous processing is key. However, default timeout settings can often lead to premature job termination, especially when using sophisticated models such as Kling, which can take a considerable amount of time to complete.

The Problem: Insufficient Time Allocation

Imagine you're baking a cake.

Read more
PHP

Enhancing Image Generation with Iteration Prompts in Brenia

Introduction

In the Brenia project, a key feature involves generating images based on user prompts. A recent enhancement ensures that iterative edits are correctly applied during image regeneration, providing a more consistent and responsive user experience.

The Problem: Ignoring Edit Prompts

Previously, the image regeneration process would sometimes disregard the user's edit prompt.

Read more
PHP AI

Streamlining Tenant AI Usage Reporting in Breniapp

Introduction

Reporting on tenant AI usage is crucial for understanding resource consumption and billing in Breniapp, a multi-tenant application. However, overly complex reports can obscure key metrics. We recently simplified the tenant AI usage table to focus on the most essential data points.

The Problem

The original tenant AI usage table contained redundant information and unnecessary

Read more
JavaScript PHP

Fixing a Scoped JavaScript Issue in Breniapp/brenia

The Breniapp/brenia project encountered an issue where a JavaScript library, html2canvas, was not properly loaded on a specific page, leading to undefined behavior. Here's how the problem was identified and resolved.

The Problem

The html2canvas library, intended for use on the content-generation page within the Filament admin panel, was failing to load.

Read more
PHP JavaScript

Enhancing Image Editing Workflow in Breniapp/brenia

Introduction

In the Breniapp/brenia project, a recent enhancement focuses on improving the image editing workflow after initial image generation. This involves ensuring that events triggered during the generation process are properly handled to enable seamless editing capabilities.

The Problem

Previously, after an image was generated using the GenerateEditorPanel, an iterate-layer

Read more
PHP JavaScript

Fixing html2canvas Scope in Livewire

When using JavaScript libraries within Livewire components, you might encounter scope issues. This post explores a common problem with html2canvas and how to resolve it.

The Problem: Isolated Scopes

Livewire's @script directive creates an isolated scope. This means variables and functions defined outside the scope might not be directly accessible within it.

Read more

Eliminating CORS Issues with Data-URL Image Conversion

Introduction

In web applications, handling images from different origins can be a recurring challenge due to Cross-Origin Resource Sharing (CORS) restrictions. These restrictions often lead to unexpected failures, especially when trying to manipulate images using technologies like html2canvas to capture screenshots with overlays.

The Problem

When capturing web page screenshots using

Read more

Enhancing Credit System Profitability Analysis in Breniapp

Introduction

This post delves into recent enhancements to the credit system within Breniapp, focusing on providing administrators with better insights into product profitability and margin analysis. The goal is to ensure coherent pricing and maintain healthy profit margins across all offerings.

Credit Plan Updates

To align pricing strategies and better reflect the value provided, the

Read more
PHP HTML

Improving Canvas Image Handling in Breniapp/brenia

Introduction

This post details a fix implemented in Breniapp/brenia to improve how canvas images are handled, specifically addressing issues with html2canvas when capturing overlays. The core problem was that the crossorigin="anonymous" attribute on canvas images was causing html2canvas to fail in certain scenarios.

The Problem: CORS and html2canvas

The crossorigin="anonymous"

Read more

Enhancing Content Management with a Redesigned Calendar

Introduction

Content calendars are essential tools for managing and scheduling content across various platforms. A well-designed calendar can significantly improve workflow, collaboration, and overall content strategy. Let's explore the recent enhancements to the content calendar in the Breniapp/brenia project.

Key Improvements

The redesigned content calendar focuses on providing a more

Read more