# Carousel problem - Image doesn't appear

**URL:** <https://community.plotly.com/t/carousel-problem-image-doesnt-appear/76226>\
**Category:** Dash Python\
**Created:** [June 20, 2023, 10:40am UTC](https://community.plotly.com/t/carousel-problem-image-doesnt-appear/76226 "2023-06-20T10:40:13Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [June 20, 2023, 11:11am UTC](https://community.plotly.com/t/carousel-problem-image-doesnt-appear/76226/2 "2023-06-20T11:11:07Z")

</div>

HI @ELITSZORD welcome to the forums.

It might be that you cactually can’t just specify the path to your local files as you did. Try using PIL.Image objects. Here’s how to do that:

> [@Dash data frame with html.Img or loading an image from local directory](https://community.plotly.com/t/dash-data-frame-with-html-img-or-loading-an-image-from-local-directory/76209/5):
>
> Hey @jinnyzor, I tried something like this: from dash import Dash, html import os import PIL.Image as Image import pandas as pd import dash\_ag\_grid as dag image\_directory = './images' image\_files = [f'fig\_{i}.png' for i in range(3)] data = [] for image\_file in image\_files: img = Image.open(os.path.join(image\_directory, image\_file)) data.append({'Image': img, 'Filename': image\_file}) df = pd.DataFrame(data) columnDefs = [ { "headerName": "Thumbnail", "field": "Ima…

---

_[View the full topic](https://community.plotly.com/t/carousel-problem-image-doesnt-appear/76226)._
