Blogs

Lightning-media-utils

Nirav Asodariya 02/01/2026   LWC

Lightning Media Utils is used in Salesforce Lightning Web Components (LWC) to process and optimize media files (mainly images) on the client side before uploading them to Salesforce. Its primary purpose is to resize images, reduce file size, control compression quality, and handle transparency, which helps improve performance, reduce bandwidth usage, and ensure smoother file uploads.