laravel-at/laravel-image-sanitize
Laravel package to sanitize images on upload by stripping EXIF/metadata, normalizing orientation, and re-encoding to safer formats. Helps reduce privacy leaks and potential payloads while keeping image quality and integrating cleanly with Laravel apps.
exiftool calls) or third-party SaaS (e.g., Cloudflare Image Resizing) for on-premise control. Reduces dependency on external APIs.Adopt if:
Look elsewhere if:
intervention/image or spatie/image-optimizer.python-magic or sharp instead).For Executives: "This package is a turnkey security shield for image uploads, eliminating a top attack vector (malicious code in images) with zero dev overhead. For every $X spent on compliance audits or breach response, this costs pennies. It’s like a firewall for your file uploads—critical for [marketplace/social/healthcare] apps where users submit media. MIT-licensed and Laravel-native, so it integrates seamlessly with our existing stack."
For Engineering:
*"Laravel-image-sanitize blocks executable payloads in uploaded images (SVG scripts, PNG chunks, etc.) using PHP’s Imagick/GD libraries. Key benefits:
HasFile models or Request validation.exif data).For Security Teams: *"This addresses CWE-917 (Malicious File Upload) by:
spatie/laravel-medialibrary’s metadata scrubbing."*How can I help you explore Laravel packages today?