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


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".

  • I was following the directions for a new theme from the M2 documentation. devdocs.magento.com/guides/v2.1/frontend-dev-guide/themes/…
    – Ryre
    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.
    – Tomi
    Mar 31, 2017 at 0:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.