Laravel Raster

screenshot of Laravel Raster

Rasterise views and components to images by simply adding a directive and fetching the URL.

Overview

RasterRasterise is a powerful tool designed to simplify the process of converting views and components into images effortlessly. By merely applying a directive and fetching a URL, users can take advantage of its comprehensive features such as automatic routing, scaling, and caching, which make generating image outputs more efficient than ever. With minimal configuration needed, this tool is customizable for those who want to delve deeper into its functionalities.

Whether you're developing for web applications or need to create visual representations of your views, RasterRasterise caters to both casual users and experienced developers, making the complex task of image generation approachable and straightforward. With features that support both automatic and manual modes of operation, it provides flexibility that adapts to different use cases.

Features

  • Zero Configuration: Start using the tool with minimal setup unless deeper customization is desired.

  • Automatic Mode: Simply implement the @raster directive to make views easily rasterizable without extra configurations.

  • Manual Mode: Gain full control over routing and requests by defining your own routes and generating URLs with the usual route() helper.

  • Customizable Views: Adapt your views based on whether they're being rasterized through the use of the $raster variable.

  • Image Options: Fine-tune your output with various options like width, height, scale, and type (PNG, JPEG, PDF) to meet your specific image requirements.

  • Caching Capabilities: Improve performance with caching options, allowing for locally stored rasterized images and the potential for optimization.

  • Preview Mode: Enable a preview of your rendered output, facilitating easy adjustments before finalizing the image.

  • Simple Installation: Easily incorporate the tool into your project by running a straightforward command, with additional steps for necessary dependencies like Puppeteer.