# Changelog

All notable changes to `image-optimizer` will be documented in this file.

## v2.2.0 - 2026-04-24

### What's Changed

* Support dynamic quality using Closures in `optimize()` macro.
* Official support for Laravel 13.
* Added tests for dynamic quality evaluation.

## v2.1.2 - 2026-03-25

### What's Changed

* Fix TemporaryUploadedFile handling in ImageProcessor::processV3() by @gsdtrustky in #6
* Adds leading slash with optimization by @matildasmets in #5
* Laravel 13 compatibility by @valpuia

### Thanks

Special thanks to:
- @valpuia for Laravel 13 compatibility https://github.com/danihidayatx/image-optimizer/pull/8
- @matildasmets for Adds leading slash with optimization #5
- @gsdtrustky for Intervention Image v3: Unable to decode TemporaryUploadedFile in processV3() #6

## v2.1.1 - 2026-02-17

### What's Changed

* Add documentation for the quality parameter in `optimize()` method and server configuration notes for WebP by @timur518.
* Add test case for verifying the quality parameter in `OptimizationTest`.

## v2.1.0 - 2026-02-03

### What's Changed

* Support for Intervention Image v3 while maintaining v2 backward compatibility.
* Refactored image processing logic into `ImageProcessor` class.
* Improved test suite for multi-version support.

### Fixes

* Closes #1

**Full Changelog**: https://github.com/danihidayatx/image-optimizer/compare/v2.0.0...v2.1.0

## v1.6.4 - 2025-10-19

### What's Changed

* Fix documentation: Use correct method names for image constraints by @maytham553 in https://github.com/joshembling/image-optimizer/pull/57

### New Contributors

* @maytham553 made their first contribution in https://github.com/joshembling/image-optimizer/pull/57

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.6.3...v1.6.4

## v1.6.3 - 2025-08-26

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.6.2...v1.6.3

## v1.6.2 - 2025-06-16

### What's Changed

* fix: Undefined variable $isPasteable by @WillieOng-HK in https://github.com/joshembling/image-optimizer/pull/52

### New Contributors

* @WillieOng-HK made their first contribution in https://github.com/joshembling/image-optimizer/pull/52

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.6.1...v1.6.2

## v1.6.1 - 2025-06-12

### What's Changed

* fix: match method signature with Filament update by @SupianIDz in https://github.com/joshembling/image-optimizer/pull/50

### New Contributors

* @SupianIDz made their first contribution in https://github.com/joshembling/image-optimizer/pull/50

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.6.0...v1.6.1

## v1.6.0 - 2025-03-08

### What's Changed

* Laravel 12 compatibility by @FinnPaes in https://github.com/joshembling/image-optimizer/pull/42

### New Contributors

* @FinnPaes made their first contribution in https://github.com/joshembling/image-optimizer/pull/42

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.5.0...v1.6.0

## v1.5.0 - 2025-02-24

### What's Changed

* Add Conditional Image Resizing Functions by @Autive in https://github.com/joshembling/image-optimizer/pull/40

### New Contributors

* @Autive made their first contribution in https://github.com/joshembling/image-optimizer/pull/40

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.4.4...v1.5.0

## v1.4.4 - 2025-01-17

### What's Changed

* Fixed maxParallelUploads attribute bug by @lucasvieira2902 in https://github.com/joshembling/image-optimizer/pull/39

### New Contributors

* @lucasvieira2902 made their first contribution in https://github.com/joshembling/image-optimizer/pull/39

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.4.3...v1.4.4

## v1.4.3 - 2024-11-05

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.4.2...v1.4.3

## v1.4.2 - 2024-09-17

### What's Changed

* handle afterStateUpdated as array by @cleeimpro in https://github.com/joshembling/image-optimizer/pull/33

### New Contributors

* @cleeimpro made their first contribution in https://github.com/joshembling/image-optimizer/pull/33

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.4.1...v1.4.2

## v1.4.1 - 2024-06-22

### What's Changed

* fix: undefined class facade ImageOptimizer by @ahmadrio in https://github.com/joshembling/image-optimizer/pull/24

### New Contributors

* @ahmadrio made their first contribution in https://github.com/joshembling/image-optimizer/pull/24

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.4.0...v1.4.1

## v1.4.0 - 2024-03-17

- Adds support for Laravel 11
- Minimum PHP requirement now 8.2

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.3.1...v1.4.0

## v1.3.1 - 2024-02-03

- Updates documentation around versioning

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.3.0...v1.3.1

## v1.3.0 - 2024-01-28

- Fixes https://github.com/joshembling/image-optimizer/issues/9 with upgrades to latest Filament changes in v3.2^

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.2.0...v1.3.0

## 1.2.0 - 2023-10-17

Requires `intervention/image` directly.

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.1.1...v1.2.0

## 1.1.1 - 2023-09-27

Fixes FileUpload class import

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.1.0...v1.1.1

## 1.1.0 - 2023-09-27

Fixes Spatie Media Library support

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.0.4...v1.1.0

## 1.0.3 - 2023-09-23

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.0.2...v1.0.3

## 1.0.2 - 2023-09-23

Package name and action changes

### What's Changed

- Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/joshembling/image-optimizer/pull/1
- Revert "Bump actions/checkout from 3 to 4" by @joshembling in https://github.com/joshembling/image-optimizer/pull/2

### New Contributors

- @dependabot made their first contribution in https://github.com/joshembling/image-optimizer/pull/1
- @joshembling made their first contribution in https://github.com/joshembling/image-optimizer/pull/2

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.0.1...v1.0.2

## 1.0.1 - 2023-09-23

Documentation update

**Full Changelog**: https://github.com/joshembling/image-optimizer/compare/v1.0.0...v1.0.1

## 1.0.0 - 202X-XX-XX

- initial release
