I have created a module to create simple product in Magento 2.

I want to create dynamic image for product with product name and save that image as product image.

How would i do that ? Any Help is appreciated.

  • Dynamic image means? Can you please explain bit more this sentence? – Mayur Sisodiya Sep 14 '20 at 11:32
  • Suppose if my product name in XYZ so i want to create an image with XYZ using a php library which is not that difficult but how to save that image and select that as an product image? @MayurSisodiya – Prits Sep 14 '20 at 11:37
  • Still confusing, anyway you can not create an image you can rename it and save it please follow below link: mageplaza.com/devdocs/… Also, you can configure default image from back-end store configuration and can assign them while saving products. – Ankit Sep 14 '20 at 14:36
  • 1
    are you using gdlibrary? – Pramod Sep 15 '20 at 7:11
  • Thanks for the suggetion.@Pramod Done that by using gdlibrary. – Prits Sep 15 '20 at 7:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.