magento2 – Getting Incorrect Image URL in Custom GraphQL Query
I would suggest :
1 – Check where is really located your images.
2 – Go into the imageHelper and debug it, check if the issue comes from the recording of your image location
After that you may want to create a new Helper overriding the magento one to fix your issue by adapting the process (probably the graph ql root media file isn’t properly registered if i had to guess without seing anything).
===========================
That being said; why you don’t just get the image using your $product object ? $product->getThumbnail()
Read more here: Source link