Skip to content

Commit

Permalink
Merge pull request #352 from joomla/image/thumbs
Browse files Browse the repository at this point in the history
Remove the createThumbs function in the image class
  • Loading branch information
HLeithner authored Jan 27, 2025
2 parents 9aeb329 + 214c553 commit 973c792
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions migrations/54-60/removed-backward-incompatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,18 @@ echo $article->get('title');
$article = $app->bootComponent('content')->getMVCFactory()->createModel('Article', 'Administrator')->getItem(1);
echo $article->title;
```

### createThumbs function got removed from the image class

- PR: https://github.com/joomla/joomla-cms/pull/44663
- File: libraries/src/Image/Image.php
- Description: The `createThumbs` function in the `Image` class got removed as the function `createThumbnails` should be used instead. For example you can use
```php
// Old:
$image = new Image($path);
$image->createThumbs('50x50');

// New:
$image = new Image($path);
$image->createThumbnails('50x50');
```

0 comments on commit 973c792

Please sign in to comment.