PHPackages                             parsaaghayi/jpegoptimizer - 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. [Image &amp; Media](/categories/media)
4. /
5. parsaaghayi/jpegoptimizer

ActiveLibrary[Image &amp; Media](/categories/media)

parsaaghayi/jpegoptimizer
=========================

0.0.2(4y ago)010MITPHP

Since Oct 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/parsaaghayi/jpegoptimizer)[ Packagist](https://packagist.org/packages/parsaaghayi/jpegoptimizer)[ RSS](/packages/parsaaghayi-jpegoptimizer/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

jpegoptimizer
=============

[](#jpegoptimizer)

you can use it to resize and optimize your jpeg files in best quality and file size together. this package use [imagemagick](https://imagemagick.org/); so you must install it first. you can resize and optimize your images in any sizes you want, TOGETHER!
Only in One Line :
`$statement->optimize($dir,$quality,$sizes);`
example1:

```
require_once './vendor/autoload.php';
use ParsaaghayiJpegOptimizer\JpegOptimizer;
$test = new JpegOptimizer;
$test->optimize('../images/1','80',150,360);
```

this code will create a folder in "../images/1" and name it "resized", then creates two folders in it: "150x" &amp; "360x". all images in directoy "../images/1" will optimze to quality "80" and will resize to 150px (width) and 360px (width).

Original Image (2940KB):

[![Original Image 2940KB](https://camo.githubusercontent.com/e2438d3bcb29742345184796e1797146fdfb366d240dea8ded29d9b83e421e96/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682e6a7067 "Original Image 2940KB")](https://camo.githubusercontent.com/e2438d3bcb29742345184796e1797146fdfb366d240dea8ded29d9b83e421e96/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682e6a7067)

Resized Image To 1920x (1030KB):

[![Resized Image To 1920x 1030KB](https://camo.githubusercontent.com/96cc219e979ff97f66fee0170646a957f72e802bf26a4022ccbfd5a622c7f34e/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d313932302e6a7067 "Resized Image To 1920x 1030KB")](https://camo.githubusercontent.com/96cc219e979ff97f66fee0170646a957f72e802bf26a4022ccbfd5a622c7f34e/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d313932302e6a7067)

Resized Image To 1366x (612KB):

[![Resized Image To 1366x 612KB](https://camo.githubusercontent.com/fd0610de706354feb8c1b5d7344a6034a5c350b7ef5673f6fc03cf8799a978ea/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d313336362e6a7067 "Resized Image To 1366x 612KB")](https://camo.githubusercontent.com/fd0610de706354feb8c1b5d7344a6034a5c350b7ef5673f6fc03cf8799a978ea/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d313336362e6a7067)

Resized Image To 414x (85KB):

[![Resized Image To 414x 85KB](https://camo.githubusercontent.com/3b0814bd6f6ed7d002c540e3d1b7684c1c244746b7f050d07f42a6fe492959c3/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d3431342e6a7067 "Resized Image To 414x 85KB")](https://camo.githubusercontent.com/3b0814bd6f6ed7d002c540e3d1b7684c1c244746b7f050d07f42a6fe492959c3/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d3431342e6a7067)

Resized Image To 150x (14KB):

[![Resized Image To 150x 14KB](https://camo.githubusercontent.com/f546d96d6bdbc9415befa2e813fa6adc81ceeb9bcb4d1271c442cf9baa3276d9/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d3135302e6a7067 "Resized Image To 150x 14KB")](https://camo.githubusercontent.com/f546d96d6bdbc9415befa2e813fa6adc81ceeb9bcb4d1271c442cf9baa3276d9/68747470733a2f2f70617273616167686179692e69722f6769746875622f6a7065676f7074696d697a65722f68696d697761792d62696b65732d706958694639334c2d35412d756e73706c6173682d3135302e6a7067)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~0 days

Total

2

Last Release

1667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdaf11978cd51b2f25f1ed1825bd738031b8f6977594368d4c4c70338a8baeb8?d=identicon)[parsaaghayi](/maintainers/parsaaghayi)

---

Top Contributors

[![parsaaghayi](https://avatars.githubusercontent.com/u/8618285?v=4)](https://github.com/parsaaghayi "parsaaghayi (12 commits)")

### Embed Badge

![Health badge](/badges/parsaaghayi-jpegoptimizer/health.svg)

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

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

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