Images don't show up when using localhost server?

Hi all,

I’m noticing that images don’t show up when viewing my site locally using localhost, but they always do when the site is deployed to my hosting service. Anyone know why? I should add that it seems like this problem doesn’t occur when referencing directly an image’s location in the file system.

the terminal that is running my localhost server returns these errors when it tries to access the images in question:

so i suspected there could be a permissions issue with the media folder, but sure enough those files don’t exist in there, and the permissions seem alright.

all help and recommendations are highly appreciated : )

does anyone have any leads on what might be causing this? :thinking:

Does you local server have GD enabled? You need either GD or ImageMagick for thumbs to work.

What exactly is your local environment?

I just checked and GD is definitely enabled on my local server

Forgive my ignorance in this area as i’m learning as i go, but I’m on macOS Ventura, installed php through homebrew and i start my local server with the command “php -S localhost:8080”. hopefully that answers your question?

Hm, without calling the router.php? Then more than just the images should not work?

php -S localhost:8000 kirby/router.php

This seems to solve my problem! I had no idea about that extra router.php part honestly. thanks for your help : )