# How to get thumbs working with kirby 2.3

**URL:** <https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534>\
**Category:** Questions\
**Tags:** v2\
**Created:** [June 27, 2016, 7:29pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534 "2016-06-27T19:29:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tau\_seti](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tau\_seti](https://forum.getkirby.com/u/tau_seti)\
**Post date:** [June 27, 2016, 7:29pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534/1 "2016-06-27T19:29:11Z")

</div>

I’m trying to modify the project.php file in the default Kirby 2.3 template. The following works…

```
<?php echo $page->text()->kirbytext() ?>
      <?php foreach($page->images()->sortBy('sort', 'asc') as $image): ?>
      <figure>
     <img src="<?php echo $image->url() ?>" alt="<?php echo $page->title()->html() ?>">
     </figure>
      <?php endforeach ?>

```

But when I try to make it output thumbs as per the line below instead it does the exact same thing … checking page source, the exact same file is being output in the html source, with no restriction of width or anything. Any thoughts?

```auto
 <img src="<?= thumb($image, array('width' => 400))->url() ?>" alt="<?php echo $page->title()->html() ?>">

```

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [June 27, 2016, 7:39pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534/2 "2016-06-27T19:39:37Z")

</div>

Have you verified that:

- the `thumbs` folder exists
- the `thumbs` folder is writable by your webserver?

PS: Please use Markdown code blocks when posting code in the future. They use three backticks at the start and end on separate lines. I have changed it for you above.

---

<div class="post-metadata">

**Author:** ![tau\_seti](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tau\_seti](https://forum.getkirby.com/u/tau_seti)\
**Post date:** [June 27, 2016, 8:02pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534/3 "2016-06-27T20:02:44Z")

</div>

Thanks I couldn’t figure out how to post code blocks and also I didn’t know anything about the thumbs folder…

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [June 27, 2016, 8:14pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534/4 "2016-06-27T20:14:07Z")

</div>

So does it work now? 😉

---

<div class="post-metadata">

**Author:** ![tau\_seti](https://avatars.discourse-cdn.com/v4/letter/t/9f8e36/32.png) [@tau\_seti](https://forum.getkirby.com/u/tau_seti)\
**Post date:** [June 27, 2016, 8:15pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534/5 "2016-06-27T20:15:17Z")

</div>

Was using on a local server and didn’t have imagemagick enabled. It works now. Maybe it’d be best to update the documents to mention both of those?

---

<div class="post-metadata">

**Author:** ![anon77445132](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@anon77445132](https://forum.getkirby.com/u/anon77445132)\
**Post date:** [June 27, 2016, 8:19pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534/6 "2016-06-27T20:19:16Z")

</div>

@tau_seti:

Hints:

- You could look at [https://getkirby.com/docs/developer-guide/troubleshooting/thumbnails](https://getkirby.com/docs/developer-guide/troubleshooting/thumbnails)…
- If a directory does not exists, then mostly the directory is not writable in the root of a webserver.  
Windows is an other world…

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:57pm UTC](https://forum.getkirby.com/t/how-to-get-thumbs-working-with-kirby-2-3/4534/7 "2025-02-06T16:57:43Z")

</div>


