# Image (Resize, Crop, ...) doesn't use previous generated files

**URL:** <https://forum.getkirby.com/t/image-resize-crop-doesnt-use-previous-generated-files/6436>\
**Category:** Questions\
**Tags:** v2\
**Created:** [January 28, 2017, 9:42am UTC](https://forum.getkirby.com/t/image-resize-crop-doesnt-use-previous-generated-files/6436 "2017-01-28T09:42:46Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@robert](https://forum.getkirby.com/u/robert)\
**Post date:** [January 30, 2017, 1:25pm UTC](https://forum.getkirby.com/t/image-resize-crop-doesnt-use-previous-generated-files/6436/20 "2017-01-30T13:25:08Z")

</div>

With analysing the runtime of commands, I was able to identify the position where the starting-point of this problem is. The call-sequence to the starting-point is:

- `...->image()->crop(...)`
- `traits/image.php:`
- `public function crop()` -\>
- `public function thumb(): return $this->kirby->component('thumb')->create($this, $params);`
- `component/thumb.php:`
- `public function create(): $thumb = new Generator($file, $params);`
- `toolkit/lib/thumb.php:`
- `public function __construct(): $this->destination = $this->destination();` -\>
- `public function destination(): $result = call($this->options['destination'], $this);`
- `toolkit/helpers.php:`
- `function call(): call_user_func_array($function, $arguments)`

And exactly the call of `call_user_func_array($function, $arguments)` causes this problem.

---

_[View the full topic](https://forum.getkirby.com/t/image-resize-crop-doesnt-use-previous-generated-files/6436)._
