# How right to work with images?

**URL:** <https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607>\
**Category:** Help\
**Created:** [November 17, 2019, 3:16pm UTC](https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607 "2019-11-17T15:16:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![miracleofweb](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@miracleofweb](https://talk.jekyllrb.com/u/miracleofweb)\
**Post date:** [November 17, 2019, 3:16pm UTC](https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607/1 "2019-11-17T15:16:45Z")

</div>

Hello!

Please tell me. How to post images to Jekyll?

Is it enough to create one folder (images). And inside it add all the pictures of posts?

I want to create a config in the **\_config.yml** file. And there, specify the images folder url. Example: `image-path: /images`.

And inside the posts, it’s enough to set the name of the images: `<img src = "{{site.image-path}} /name-of-image.jpeg">`. Will this work correctly with images? It seems to me convenient.

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [November 17, 2019, 10:06pm UTC](https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607/2 "2019-11-17T22:06:19Z")

</div>

that would probably work, did you try it?

That said I am not sure what it is gaining you other than a single place to edit if you want to change it in the future. I just put my images in `assets/images` and link to them with that url.

---

<div class="post-metadata">

**Author:** ![miracleofweb](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@miracleofweb](https://talk.jekyllrb.com/u/miracleofweb)\
**Post date:** [November 18, 2019, 12:37am UTC](https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607/3 "2019-11-18T00:37:44Z")

</div>

Thank you for the answer! You mean, that I should put all my site (post) images into one single folder? Into `assets/images` folder…

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [November 18, 2019, 4:21am UTC](https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607/4 "2019-11-18T04:21:11Z")

</div>

yes, you can put them where ever you want, jekyll does not do anything special to images - jekyll just copies them from where ever they are to the same location within the \_site folder.

I sometimes put them in sub directories within the images folder if I feel it makes sense.

If you are trying to store the images for a post with a particular post, I don’t think that works too well, I have seen that asked before and don’t think that is a normal workflow.

---

<div class="post-metadata">

**Author:** ![miracleofweb](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@miracleofweb](https://talk.jekyllrb.com/u/miracleofweb)\
**Post date:** [November 18, 2019, 9:45am UTC](https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607/5 "2019-11-18T09:45:57Z")

</div>

Thank you, sir, for the answer!

> If you are trying to store the images for a post with a particular post, I don’t think that works too well, I have seen that asked before and don’t think that is a normal workflow.

What are you mean? Please, could you clarify this point? Sorry, maybe I have some trouble with my English understand…)

> I don’t think that works too well

If I store all my post’s images into one folder, it’s will be bad?

> I have seen that asked before and don’t think that is a normal workflow.

Please, can you tell me. How are you working with images for your posts? Maybe I should do create folders for each post, where I put post’s images? Example:` /assets/images/post-name-folder/image1.jpg + image2.jpg etc`

---

<div class="post-metadata">

**Author:** ![rdyar](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/rdyar/32/710_2.png) [@rdyar](https://talk.jekyllrb.com/u/rdyar)\
**Post date:** [November 18, 2019, 5:33pm UTC](https://talk.jekyllrb.com/t/how-right-to-work-with-images/3607/6 "2019-11-18T17:33:28Z")

</div>

> [@miracleofweb](#):
>
> If you are trying to store the images for a post with a particular post, I don’t think that works too well, I have seen that asked before and don’t think that is a normal workflow.

sometimes people want to keep the images with the article - so they want to store the asset in a folder next to the post, but this does not work if I remember correctly.

All the images in one folder is fine, that is what I do. You can use different folders like your example if you want, all up to you.
