1

When looking through Magento 2 themes, the directory structure include the directories images and media. It seems like image files (png, gif, etc) could go into either directory.

What are the differences between each directory and what types of files should go into each?

1 Answer 1

1

By definition media is a super set of image. So images in svg,png,jpg,gif... should be in images folder. Audio, video or other non-image media can be saved in media.

However, Can I know which folder you are looking at? Most of the time, the structure of those file are just arranged by the module author, and it's not always "true".

2
  • I was following the directions for a new theme from the M2 documentation. devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/… Commented Mar 30, 2017 at 22:41
  • 1
    ok, In the media, put the those media file like preview.png, video. In the image you can add you theme image inside which means like icon sprite picture or other decoration for you theme. Commented Mar 31, 2017 at 0:28

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.