Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Image Bundle

Image Bundle Laravel Package

presta/image-bundle

Symfony bundle for image handling and manipulation, providing filters, thumbnails, and caching through a simple, configurable API for generating and serving optimized images.

View on GitHub
Deep Wiki
Context7

PrestaImageBundle adds complete image handling to Symfony applications: upload and attach images to entities, generate filtered versions, and crop them through a built-in web interface. It builds on the Imagine library and integrates smoothly with LiipImagineBundle filters and SonataAdminBundle administration panels.

  • Entity image upload with a ready-made form type
  • Named filter sets for resizing, thumbnails and crops
  • Interactive crop UI with bundled controller and templates
  • Twig helpers for rendering images and filters
  • Sonata Admin integration for managing galleries
Frequently asked questions about Image Bundle
Is PrestaImageBundle compatible with Laravel?
No. PrestaImageBundle is a Symfony bundle built on Symfony's Form component, HttpFoundation UploadedFile, and Symfony DI/service configuration. It ships no Laravel service provider, facade, config publishing, queue integration, or hook into Laravel's Storage disk model. Installing it in a Laravel app would pull in a parallel form abstraction you would not use.
How do I install PrestaImageBundle?
You can install it with Composer using presta/image-bundle, but it is intended for Symfony applications where you register the bundle and configure its services. There is no Laravel package discovery or publishable config, so a Laravel install requires manually wiring Symfony Form, OptionsResolver, and HttpFoundation. For most Laravel teams the better route is to treat the repository as a reference implementation rather than a dependency.
Can I use PrestaImageBundle to crop images before upload in a Laravel form?
Not directly. The bundle intercepts uploads through Symfony Form types, so it does not plug into Laravel's request validation or file upload flow. The realistic approach is to extract its resize and remote-fetch logic into an internal ImageTransformer service backed by Intervention Image or Glide, wired to Laravel Storage and a queued job. That extraction is typically a one to two day spike.
Does PrestaImageBundle support remote image fetching, and is it safe?
Yes, remote-image fetching is the bundle's main differentiator versus just using Intervention Image, and it is also its highest-risk feature. Server-side URL fetching is an SSRF surface, so any implementation you adopt needs URL allowlisting, scheme restrictions, size caps, redirect limits, and DNS/IP filtering. Do not assume the bundle provides hardened defaults; audit that code path before exposing it to user-supplied URLs.
What are the best Laravel alternatives to PrestaImageBundle for image resizing and cropping?
For Laravel, Intervention Image, spatie/image, and Glide already speak Laravel's filesystem and queue idioms and are the practical replacements. Use a JavaScript cropper such as Cropper.js for the client-facing crop UI and handle server-side resize and thumbnail generation with one of those libraries. If you need remote fetching, build it as a small guarded service rather than adopting a Symfony bundle.
Which Symfony and PHP versions does PrestaImageBundle support, and is that relevant to Laravel?
It is a Symfony bundle, so its constraints target Symfony and PHP versions rather than Laravel versions; check its composer.json for the exact supported ranges. The evaluation flags a 2026-10-07 release date as anomalous, so verify that it is a real tag and not a metadata artifact before treating the package as actively maintained. Laravel version support is not applicable because there is no Laravel integration.
Is PrestaImageBundle actively maintained and safe to adopt in production?
Adoption signal is very low: 24 stars and zero dependents, with single-vendor community maintenance. That means you would be the first meaningful consumer and would own the bugs. Treat it as a pattern source, verify commit cadence and open-issue triage, and only adopt directly if you are willing to own a fork.
Does PrestaImageBundle handle EXIF orientation, animated GIF/WebP, and color profiles?
The evaluation does not confirm support for EXIF orientation, animated GIF or WebP, or color profiles, so you must test against your real asset samples. If those cases are handled incorrectly you would be shipping visibly wrong output to users. Run oversized phone uploads, avatars, and product photos through the resize path in a scratch script before committing to the approach.
How does PrestaImageBundle handle thumbnails, filters, and caching, and can I replicate that in Laravel?
The bundle provides configurable filters, thumbnail generation, caching, and template helpers to process, resize, and serve optimized images with minimal setup in Symfony. In Laravel you would replicate this with Intervention Image or Glide plus Storage and Laravel's cache, and offload heavy work to a queued job. Glide in particular gives you HTTP-level image caching without building it yourself.
What are the main production risks of using PrestaImageBundle in a Laravel application?
The main risks are high adoption and maintenance risk from a tiny user base, SSRF from server-side remote fetching, and memory exhaustion from large uploads or decompression bombs. There is also no Laravel service provider, filesystem abstraction, or queue integration, so you would own the glue code. A one to two day spike to extract the resize and remote-fetch logic into an internal service is the realistic outcome.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource