bukashk0zzz/liip-imagine-serialization-bundle
LiipImagineBundle (image filtering) while leveraging JMSSerializerBundle’s existing normalization capabilities, reducing dev time.Adopt if:
LiipImagineBundle for image processing and JMSSerializerBundle for API responses.Look elsewhere if:
spatie/image-optimizer) and don’t need runtime flexibility.LiipImagineBundle + JMSSerializerBundle.FFmpeg integrations or dedicated media services like Cloudinary).For Executives: "This bundle lets us dynamically optimize images in API responses—reducing storage costs by up to 50% (vs. pre-generating variants) while improving performance for mobile users. For example, a user on a slow connection gets a smaller, compressed image automatically. It’s a low-risk, high-impact upgrade to our media pipeline, leveraging existing tools without new hires."
For Engineering:
*"We’re adding a lightweight layer to serialize LiipImagine filters (e.g., thumbnail, resize) alongside JMSSerializer. This avoids:
For Developers:
*"This bundle lets you add #[Groups({"api"})] to your Image entity and automatically include resized URLs in serialized output. Example:
#[SerializeAs(
ifNotNull: new Callback(
new LiipImagineSerializer(),
['filter' => 'my_thumbnail_filter']
)
)]
public ?string $url = null;
No more manual ImageVariant entities or API-specific logic."*
How can I help you explore Laravel packages today?