# Can't display an image uploaded in the panel

**URL:** <https://forum.getkirby.com/t/cant-display-an-image-uploaded-in-the-panel/17829>\
**Category:** Questions\
**Tags:** v3\
**Created:** [April 9, 2020, 10:27am UTC](https://forum.getkirby.com/t/cant-display-an-image-uploaded-in-the-panel/17829 "2020-04-09T10:27:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrieng](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/adrieng/32/14454_2.png) [@Adrieng](https://forum.getkirby.com/u/Adrieng)\
**Post date:** [April 9, 2020, 10:27am UTC](https://forum.getkirby.com/t/cant-display-an-image-uploaded-in-the-panel/17829/1 "2020-04-09T10:27:40Z")

</div>

Hello,

I can’t display the image I’ve uploaded in the panel. It seems that I missed something concerning the way to call an image in the template. I think it is linked to a misunderstanding of the difference between the image object ($image) and the image method (image()).

The image is correctly uploaded but it’s not displayed on the site :

 ![Capture d’écran 2020-04-09 à 12.21.41](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/e/eefb2ea963189a60791aa81eed852de17292e18b.png)

Here is my blueprint :

```
columns:
    - width: 1/3
        sections:
            content:
                type: fields
                fields:
                    title:
                        type: text
                    bio:
                        label: Biographie
                        type: textarea
                    image:
                        label: Photo de profil
                        type: files
                        max: 1
                        layout: cards
                        image:
                            cover: true
                            ratio: 1/1

```

Here is my php :

```
            <?php if($image = $page->cover()->toFile()): ?>
            <div id="conteneur-photo">
                <img src="<?= $image->url() ?>" alt="">
            </div>
            <?php endif ?>

```

In my text file, I’ve got that line :

```
Image:

- dali.jpg

```

My cover image is another one and I don’t know how to configure it.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [April 9, 2020, 11:46am UTC](https://forum.getkirby.com/t/cant-display-an-image-uploaded-in-the-panel/17829/2 "2020-04-09T11:46:52Z")

</div>

> [@Adrieng](#):
>
> \<?php if($image = $page-\>cover()-\>toFile()): ?\>

```auto
 <?php if($image = $page->content()->image()->toFile()): ?>

```

Because `image()` is a native Kirby page method…

> **[Fields](https://getkirby.com/docs/guide/blueprints/fields#naming-fields)**
>
> Form fields are an essential part of the configuration and have very powerful options.

---

<div class="post-metadata">

**Author:** ![Adrieng](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/adrieng/32/14454_2.png) [@Adrieng](https://forum.getkirby.com/u/Adrieng)\
**Post date:** [April 9, 2020, 11:58am UTC](https://forum.getkirby.com/t/cant-display-an-image-uploaded-in-the-panel/17829/3 "2020-04-09T11:58:22Z")

</div>

Hi @texnixe, thks a lot.
