Skip to content

Commit 973c792

Browse files
authored
Merge pull request #352 from joomla/image/thumbs
Remove the createThumbs function in the image class
2 parents 9aeb329 + 214c553 commit 973c792

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

migrations/54-60/removed-backward-incompatibility.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,18 @@ echo $article->get('title');
6464
$article = $app->bootComponent('content')->getMVCFactory()->createModel('Article', 'Administrator')->getItem(1);
6565
echo $article->title;
6666
```
67+
68+
### createThumbs function got removed from the image class
69+
70+
- PR: https://github.com/joomla/joomla-cms/pull/44663
71+
- File: libraries/src/Image/Image.php
72+
- Description: The `createThumbs` function in the `Image` class got removed as the function `createThumbnails` should be used instead. For example you can use
73+
```php
74+
// Old:
75+
$image = new Image($path);
76+
$image->createThumbs('50x50');
77+
78+
// New:
79+
$image = new Image($path);
80+
$image->createThumbnails('50x50');
81+
```

0 commit comments

Comments
 (0)