Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Can't see images loaded from a local images folder #198

Closed
1 of 2 tasks
galeone opened this issue Sep 7, 2019 · 5 comments · Fixed by #224
Closed
1 of 2 tasks

Can't see images loaded from a local images folder #198

galeone opened this issue Sep 7, 2019 · 5 comments · Fixed by #224

Comments

@galeone
Copy link

galeone commented Sep 7, 2019

Info

  • Operating System: Archlinux
  • Node Version: v12.10.0
  • Browser Name and Version: Chromium 76.0.3809.132-1

Type

  • bug
  • feature request

Expected Behavior

I should visualize the images when I create new slides that use images from a local images folder - but instead, all I got are 404 error (see screenshot).

Actual Behavior

I can't visualize the images, the server gives 404.

Screenshot_20190907_103927

How can we reproduce the behavior?

# create a new project
npx fusuma init
# create a slides and images folder
mkdir slides
mkdir images
# Put a random image inside the images folder
wget "http://university.it/image/2017/04/reece.JPG?w=800&m=widen" -O images/image.jpg

# Create a simple slide that includes an image from
echo "![](/images/image.jpg" > slides/0-first.md

# Start fusuma in DEVELOPMENT mode
npx fusuma start

Perhaps this is not a bug and there is something wrong with my project structure, but I can't see where the problem is.

Thank you for this great project!

@hiroppy
Copy link
Owner

hiroppy commented Sep 18, 2019

Sorry for the late reply.

- echo "![](/images/image.jpg" > slides/0-first.md
+ echo "![](/images/image.jpg)" > slides/0-first.md

?

@galeone
Copy link
Author

galeone commented Sep 19, 2019

Yes, sure! It was a typo.

By the way, right now (using the latest version) the workflow I have to follow to have the images inside the presentation is to:

fusuma build
cp -r images dist/

Only in this way I can have the images when the web application is built.

But when I use fusuma start there is no way to see the images

@hiroppy
Copy link
Owner

hiroppy commented Sep 19, 2019

Thank you for the information! I'll investigate this issue:)

@heavenshell
Copy link

Same problem here.

1-intro.mdx

🙆‍♂  <img src="../images/profile.jpg" />
🙅‍♂  ![profile](/images/profile.jpg)
npx fusuma start

markdown image did not render to browser.

@hiroppy
Copy link
Owner

hiroppy commented Sep 29, 2019

I would like to fix but I'm quite busy now... maybe I'll be back from the 10th of October. sorry...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants