PHPackages                             ranjeet968/ixlcompression - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. ranjeet968/ixlcompression

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

ranjeet968/ixlcompression
=========================

A Laravel package for compressing images (JPG, JPEG, PNG, GIF, BMP, WEBP, PSD, TIFF), PDFs (Snappy, Dompdf, or standard PDF), and videos (MP4, MOV, AVI, MKV, WEBM, FLV) using Imagick, Ghostscript, and FFmpeg.

v1.0.13(1y ago)043proprietaryPHPPHP &gt;=8.1

Since Apr 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Ranjeet968/ixlcompression)[ Packagist](https://packagist.org/packages/ranjeet968/ixlcompression)[ Docs](https://github.com/ranjeet968/ixlcompression)[ RSS](/packages/ranjeet968-ixlcompression/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

📦 IxlCompression - Laravel File Compression Package
===================================================

[](#-ixlcompression---laravel-file-compression-package)

IxlCompression is a Laravel package that compresses images and PDFs before storing them. It supports **Imagick**, **Ghostscript**, **Snappy**, and **Dompdf** for optimized compression.

---

🚀 Installation
--------------

[](#-installation)

Install the package using **Composer**:

```
composer require ranjeet968/ixlcompression

If you face dependency issues, try updating:

composer update ranjeet968/ixlcompression

📂 Supported File Types

✅ Compressed Files

📄 PDFs (Compressed using Ghostscript with configurable pdf_quality setting)

🖼️ Images (jpg, jpeg, png, gif, bmp, webp, psd, tiff - Compressed using Imagick with configurable image_quality setting)

🎞️ Videos (mp4, mov, avi, mkv, webm, flv - Compressed using FFmpeg with configurable CRF setting)

⛔ Unsupported Files

doc, xls, ppt, csv (No compression applied)

🔧 Usage

1️⃣ Basic File Compression
use Ranjeet\IxlCompression\FileCompressor;

$compressedFile = FileCompressor::compress($uploadedFile);
Here, $uploadedFile should be an instance of Illuminate\Http\UploadedFile or a valid file path.

🛠 Requirements
PHP 8.0+

Laravel 8+

Imagick (for image compression)

Ghostscript (for PDF compression)

FFmpeg (for video compression)

Snappy/Dompdf (optional PDF compression)

To install required dependencies:

 For image support:
 a. example for php 8.2 : sudo apt install php8.2-imagick -y

 For PDF compression:
 b. sudo apt install ghostscript -y

 For Video compression:
 c. sudo apt install ffmpeg php8.2-ffmpeg -y

## License

This package is proprietary and not open source.

You may not copy, reuse, or distribute this code without written permission.
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

396d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f3751af1be6a71e0adf136398027ca2b27768e5868eba1afd8b07742826cec2?d=identicon)[Ranjeet968](/maintainers/Ranjeet968)

---

Top Contributors

[![ixltech-ranjeet](https://avatars.githubusercontent.com/u/129148985?v=4)](https://github.com/ixltech-ranjeet "ixltech-ranjeet (24 commits)")[![Ranjeet968](https://avatars.githubusercontent.com/u/65466162?v=4)](https://github.com/Ranjeet968 "Ranjeet968 (1 commits)")

---

Tags

laravelpdfimageimagickcompressionvideoffmpegdompdfsnappyghostscript

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ranjeet968-ixlcompression/health.svg)

```
[![Health](https://phpackages.com/badges/ranjeet968-ixlcompression/health.svg)](https://phpackages.com/packages/ranjeet968-ixlcompression)
```

###  Alternatives

[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M274](/packages/barryvdh-laravel-dompdf)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
