{"id":107069,"date":"2017-12-29T14:12:54","date_gmt":"2017-12-29T14:12:54","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=107069"},"modified":"2024-02-19T11:31:50","modified_gmt":"2024-02-19T11:31:50","slug":"add-image-product-created-installer-magento2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/","title":{"rendered":"Add Image to a Product Created by Installer in Magento 2"},"content":{"rendered":"\n<p>Today i am explaining, if you want to created a product in Magento 2 using data patch.<\/p>\n\n\n\n<p>Now, if you want to assign an image to that product, then you can follow the mentioned process:<\/p>\n\n\n\n<p>Firstly you need to manage your image, i.e. you need to move your file from your module folder to media folder.<\/p>\n\n\n\n<p>your image file should be at: \/app\/code\/Webkul\/Test\/view\/base\/web\/images\/test\/upload.png<\/p>\n\n\n\n<p>Now add following code in \/app\/code\/Webkul\/Test\/Setup\/Patch\/Data\/MoveMediaFiles.php <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\"> &lt;?php\nnamespace Webkul\\Test\\Setup\\Patch\\Data;\n\nuse Magento\\Framework\\Setup\\Patch\\DataPatchInterface;\nuse Magento\\Framework\\Setup\\ModuleDataSetupInterface;\nuse Webkul\\Marketplace\\Model\\ControllersRepository;\nuse Magento\\Framework\\App\\Filesystem\\DirectoryList;\n\nclass MoveMediaFiles implements DataPatchInterface\n{\n    \/**\n     * @var ModuleDataSetupInterface $moduleDataSetup\n     *\/\n    private $moduleDataSetup;\n\n    \/**\n     * Construct\n     *\n     * @param \\Magento\\Framework\\Filesystem $filesystem\n     * @param \\Magento\\Framework\\Filesystem\\Io\\File $file\n     * @param \\Magento\\Framework\\Module\\Dir\\Reader $reader\n     *\/\n    public function __construct(\n        \\Magento\\Framework\\Filesystem $filesystem,\n        \\Magento\\Framework\\Filesystem\\Io\\File $file,\n        \\Magento\\Framework\\Module\\Dir\\Reader $reader\n    ) {\n        $this-&gt;filesystem = $filesystem;\n        $this-&gt;file = $file;\n        $this-&gt;reader = $reader;\n    }\n\n    \/**\n     * Do Upgrade\n     *\n     * @return void\n     *\/\n    public function apply()\n    {\n        $this-&gt;processDefaultImages();\n    }\n\n    \/**\n     * Copy Banner and Icon Images to Media\n     *\/\n    private function processDefaultImages()\n    {\n        $error = false;\n        try {\n            $this-&gt;createDirectories();\n            $directory = $this-&gt;filesystem-&gt;getDirectoryRead(DirectoryList::MEDIA);\n            $ds = &quot;\/&quot;;\n            $baseModulePath = $this-&gt;reader-&gt;getModuleDir(&#039;&#039;, &#039;Webkul_Test&#039;);\n            $mediaDetails = &#091;\n                &quot;test&quot; =&gt; &#091;\n                    &quot;view\/base\/web\/images\/test&quot; =&gt; &#091;\n                        &quot;upload.png&quot;\n                    ]\n                ] \n            ];\n\n            foreach ($mediaDetails as $mediaDirectory =&gt; $imageDetails) {\n                foreach ($imageDetails as $modulePath =&gt; $images) {\n                    foreach ($images as $image) {\n                        $path = $directory-&gt;getAbsolutePath($mediaDirectory);\n                        $mediaFilePath = $path.$ds.$image;\n                        $moduleFilePath = $baseModulePath.$ds.$modulePath.$ds.$image;\n\n                        if ($this-&gt;file-&gt;fileExists($mediaFilePath)) {\n                            continue;\n                        }\n\n                        if (!$this-&gt;file-&gt;fileExists($moduleFilePath)) {\n                            continue;\n                        }\n\n                        $this-&gt;file-&gt;cp($moduleFilePath, $mediaFilePath);\n                    }\n                }\n            }\n        } catch (\\Exception $e) {\n            $error = true;\n        }\n    }\n\n    \/**\n     * Create default directories\n     *\/\n    private function createDirectories()\n    {\n        $mediaDirectories = &#091;&#039;test&#039;];\n        foreach ($mediaDirectories as $mediaDirectory) {\n            $directory = $this-&gt;filesystem-&gt;getDirectoryRead(DirectoryList::MEDIA);\n            $path = $directory-&gt;getAbsolutePath($mediaDirectory);\n            if (!$this-&gt;file-&gt;fileExists($path)) {\n                $this-&gt;file-&gt;mkdir($path, 0777, true);\n            }\n        }\n    }\n\n    \/**\n     * Get aliases\n     *\/\n    public function getAliases()\n    {\n        return &#091;];\n    }\n\n    \/**\n     * Get dependencies\n     *\/\n    public static function getDependencies()\n    {\n        return &#091;];\n    }\n}<\/pre>\n\n\n\n<p>after executing this code your file moved to pub\/media\/test\/upload.png<\/p>\n\n\n\n<p>Now in CreateProduct file, in which you are creating your product, add following code:<br>         <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\nnamespace Webkul\\Test\\Setup\\Patch\\Data;\n\nuse Magento\\Eav\\Setup\\EavSetup;\nuse Magento\\Eav\\Setup\\EavSetupFactory;\nuse Magento\\Framework\\Setup\\ModuleDataSetupInterface;\nuse Magento\\Framework\\Setup\\Patch\\DataPatchInterface;\nuse Magento\\Eav\\Model\\Entity\\Attribute\\ScopedAttributeInterface;\nuse Magento\\Framework\\App\\Filesystem\\DirectoryList;\n\nclass CreateProduct implements DataPatchInterface\n{\n    \/**\n     * @var \\Magento\\Store\\Model\\StoreManagerInterface\n     *\/\n    protected $_storeManager;\n    \/**\n     * @var \\Magento\\Catalog\\Model\\ProductFactory\n     *\/\n    protected $_productFactory;\n    \/**\n     * @var \\Magento\\Catalog\\Model\\Product\n     *\/\n    protected $_productModel;\n    \/**\n     * @var Installer\n     *\/\n    protected $_productType = \\Magento\\Catalog\\Model\\Product\\Type::TYPE_VIRTUAL;\n    \/**\n     * @var \\Magento\\Framework\\Filesystem\n     *\/\n    protected $_filesystem;\n    protected $_objectManager;\n\n    \/**\n     * @param ModuleDataSetupInterface $moduleDataSetup\n     * @param EavSetupFactory $eavSetupFactory\n     *\/\n    public function __construct(\n        \\Magento\\Catalog\\Model\\Product $productModel,\n        \\Magento\\Store\\Model\\StoreManagerInterface $storeManager,\n        \\Magento\\Catalog\\Model\\ProductFactory $productFactory,\n        \\Magento\\Framework\\Filesystem $filesystem,\n        \\Magento\\Framework\\ObjectManagerInterface $objectManager\n    ) {\n        $this-&gt;productModel = $productModel;\n        $this-&gt;storeManager = $storeManager;\n        $this-&gt;productFactory = $productFactory;\n        $this-&gt;_filesystem = $filesystem;\n        $this-&gt;_objectManager = $objectManager;\n    }\n\n    \n    public function apply()\n    {\n      $this-&gt;createProduct();\n    }\n\n    public function createProduct(){\n        $appState = $this-&gt;_objectManager-&gt;get(&#039;Magento\\Framework\\App\\State&#039;);\n        $appState-&gt;setAreaCode(&#039;adminhtml&#039;);\n        $product = $this-&gt;productFactory-&gt;create();\n        $attributeSetId = $this-&gt;productModel-&gt;getDefaultAttributeSetId();\n        $product-&gt;setStoreId(\\Magento\\Store\\Model\\Store::DEFAULT_STORE_ID); \n        $product-&gt;setWebsiteIds(&#091;$this-&gt;storeManager-&gt;getDefaultStoreView()-&gt;getWebsiteId()]);\n        $product-&gt;setTypeId(&#039;simple&#039;);\n        $product-&gt;addData(array(\n            &#039;name&#039; =&gt; &#039;Sample product&#039;,\/\/name of product\n            &#039;attribute_set_id&#039; =&gt; $attributeSetId,\n            &#039;status&#039; =&gt; \\Magento\\Catalog\\Model\\Product\\Attribute\\Source\\Status::STATUS_ENABLED, \n            &#039;visibility&#039; =&gt; \\Magento\\Catalog\\Model\\Product\\Visibility::VISIBILITY_NOT_VISIBLE, \n            &#039;weight&#039; =&gt; 1,\n            &#039;sku&#039; =&gt; &#039;sample_product&#039;,\/\/SKU of product\n            &#039;tax_class_id&#039; =&gt; 0,\n            &#039;description&#039; =&gt; &#039;sample_product&#039;,\n            &#039;short_description&#039; =&gt; &#039;sample_product&#039;,\n            &#039;stock_data&#039; =&gt; array( \/\/stock management\n                &#039;manage_stock&#039; =&gt; 1,\n                &#039;qty&#039; =&gt; 999, \n                &#039;is_in_stock&#039; =&gt; 1\n            )\n        ));\n        $product-&gt;save();\n        $imagePath = $this-&gt;getViewFileUrl().&#039;test\/upload.png&#039;;\n        $product-&gt;addImageToMediaGallery($imagePath, &#091;&#039;image&#039;, &#039;small_image&#039;, &#039;thumbnail&#039;], false, false);\n        $product-&gt;save();\n    }\n\n    public function getViewFileUrl()\n    {\n        return $this-&gt;_filesystem\n            -&gt;getDirectoryRead(DirectoryList::MEDIA)\n            -&gt;getAbsolutePath();\n    }\n\n    \/**\n     * Get dependencies\n     *\/\n    public static function getDependencies()\n    {\n        return &#091;];\n    }\n\n    \/**\n     * Get Aliases\n     *\/\n    public function getAliases()\n    {\n        return &#091;];\n    }\n}<\/pre>\n\n\n\n<p>After this, your product with an image is created.<\/p>\n\n\n\n<p>I hope this blog will help you with Add Image to a Product Created by Installer in Magento 2. You may also check our wide range of best <a href=\"https:\/\/store.webkul.com\/Magento-2.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\">Magento 2 Extensions<\/a>.<\/p>\n\n\n\n<p>Please reach out to our team via a&nbsp;<a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-wpel-link=\"exclude\">support ticket<\/a>&nbsp;if you have any queries.<\/p>\n\n\n\n<p>Try this and if you have any queries then just comment below \ud83d\ude42<\/p>\n\n\n\n<div class=\"version-info\">&nbsp;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today i am explaining, if you want to created a product in Magento 2 using data patch. Now, if you want to assign an image to that product, then you can follow the mentioned process: Firstly you need to manage your image, i.e. you need to move your file from your module folder to media <a href=\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":68,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[2070,5990,5991,5992],"class_list":["post-107069","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-magento2","tag-product-by-installer","tag-product-create-programatically","tag-product-with-image-in-installer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Add Image to a Product Created by Installer in Magento 2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add Image to a Product Created by Installer in Magento 2\" \/>\n<meta property=\"og:description\" content=\"Today i am explaining, if you want to created a product in Magento 2 using data patch. Now, if you want to assign an image to that product, then you can follow the mentioned process: Firstly you need to manage your image, i.e. you need to move your file from your module folder to media [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-29T14:12:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-19T11:31:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Bulbul\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bulbul\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\"},\"author\":{\"name\":\"Bulbul\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e\"},\"headline\":\"Add Image to a Product Created by Installer in Magento 2\",\"datePublished\":\"2017-12-29T14:12:54+00:00\",\"dateModified\":\"2024-02-19T11:31:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\"},\"wordCount\":192,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"keywords\":[\"Magento2\",\"product by installer\",\"product create programatically\",\"product with image in installer\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\",\"url\":\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\",\"name\":\"Add Image to a Product Created by Installer in Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"datePublished\":\"2017-12-29T14:12:54+00:00\",\"dateModified\":\"2024-02-19T11:31:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add Image to a Product Created by Installer in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e\",\"name\":\"Bulbul\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g\",\"caption\":\"Bulbul\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/bulbul896\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add Image to a Product Created by Installer in Magento 2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/","og_locale":"en_US","og_type":"article","og_title":"Add Image to a Product Created by Installer in Magento 2","og_description":"Today i am explaining, if you want to created a product in Magento 2 using data patch. Now, if you want to assign an image to that product, then you can follow the mentioned process: Firstly you need to manage your image, i.e. you need to move your file from your module folder to media [...]","og_url":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-12-29T14:12:54+00:00","article_modified_time":"2024-02-19T11:31:50+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-og.png","type":"image\/png"}],"author":"Bulbul","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Bulbul","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/"},"author":{"name":"Bulbul","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e"},"headline":"Add Image to a Product Created by Installer in Magento 2","datePublished":"2017-12-29T14:12:54+00:00","dateModified":"2024-02-19T11:31:50+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/"},"wordCount":192,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"keywords":["Magento2","product by installer","product create programatically","product with image in installer"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/","url":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/","name":"Add Image to a Product Created by Installer in Magento 2","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"datePublished":"2017-12-29T14:12:54+00:00","dateModified":"2024-02-19T11:31:50+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/add-image-product-created-installer-magento2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Add Image to a Product Created by Installer in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/c9c6288b3950490ffdb37cb2a526996e","name":"Bulbul","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/37ea7175f5ae6557d01bb38e147f6a02a540714ecdb71770d8ec554d4d34c23f?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Feva.png&r=g","caption":"Bulbul"},"url":"https:\/\/webkul.com\/blog\/author\/bulbul896\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/107069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/68"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=107069"}],"version-history":[{"count":5,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/107069\/revisions"}],"predecessor-version":[{"id":422922,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/107069\/revisions\/422922"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=107069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=107069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=107069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}