Asset (image) public URL does not work I wanted to include some uploaded assets (images) in an entry. The .url property in twig outputs the proper URL, in my case:


  http://localhost/craftcms/web/image/photo-2017-04-02-16-20-53-1.jpg


However, that link is broken. Following it leads to a 404 error page:


  Template not found: image/photo-2017-04-02-16-20-53-1.jpg


Viewing it in the admin panel preview also displays a broken image sign.

If I disable the Public URL switch in the asset settings, the image display fine in the admin panel, but obviously I cannot use them in public pages.

I wasn't able to find a working fix for this. I tried the multiple-environment config solution from these forums just in case, but it did not help me.

Update: here is a screenshot of my Assets volume settings:
The issue is that your Asset Volume URL is @web/image but your Asset Volume path is @webroot/assets/art

That means that Craft will look for the images on disk (to do transforms, etc.) in web/assets/art but it will generate URLs for frontend requests that point to http://example.com/image -- where presumably nothing exists.

These should probably be:


URL: @web/assets/art
Path: @webroot/assets/art


...assuming that the web/assets/art/ directory is where these images live.