Skip to content

Commit

Permalink
Merge branch 'release/4.0.0-beta.2' into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Welch committed Apr 8, 2022
2 parents 1c060ca + 191b6ec commit dfce3c7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ImageOptimize Changelog

## 4.0.0-beta.2 - 2022.04.08
### Fixed

* Fixed an issue with properties not being initialized before being accessed, which would cause image uploads to fail ([#323](https://github.com/nystudio107/craft-imageoptimize/issues/323))

## 4.0.0-beta.1 - 2022.03.23

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-imageoptimize",
"description": "Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like imgix, with zero template changes.",
"type": "craft-plugin",
"version": "4.0.0-beta.1",
"version": "4.0.0-beta.2",
"keywords": [
"craft",
"cms",
Expand Down
8 changes: 4 additions & 4 deletions src/models/OptimizedImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class OptimizedImage extends Model
/**
* @var array An array of the x,y image focal point coords, ranging from 0.0 to 1.0
*/
public array $focalPoint;
public array $focalPoint = [];

/**
* @var int The width of the original source image
Expand Down Expand Up @@ -83,17 +83,17 @@ class OptimizedImage extends Model
/**
* @var int The overall lightness of the image, from 0..100
*/
public int $lightness;
public int $lightness = 0;

/**
* @var int The width of the placeholder image
*/
public int $placeholderWidth;
public int $placeholderWidth = 0;

/**
* @var int The height of the placeholder image
*/
public int $placeholderHeight;
public int $placeholderHeight = 0;

/**
* @var array An array of errors logged when generating the image transforms
Expand Down

0 comments on commit dfce3c7

Please sign in to comment.