I'm trying to get image which is inserted in /app/design/frontend/Mytheme/themename/media
folder using following code but it's shows 404 not found. I have also apply cache clean & static content deploy command but still not working. I'm using below code in my phtml file:-
$mediaurl = $this->_storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA);
$image = $mediaurl."myimg.png";
echo $image;
So is it possible to get images of media folder in M2? Any suggestion should be appreciated. Thanks.