- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to add other server image path to Magento 2.3.3?
My magento 1.9 website currently live, after migrated magento 1.9 to 2.3.3 how can i link my magento 1.9 image server to magento 2.3.3?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
@Aveeva from your admin panel, go to Stores->Configuration->Web
There you will find the option for "Base URL for User Media Files" in Base Url (Secure) and Base Urls.
Just fill the path of other server media folder here and flush your cache and check the results in frontend.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
Hello @Aveeva
I have given some steps that you can follow to fulfill your requirements. And not only that, the below steps allows migrating the product images as well which you are going to require as you are migrating the store.
Hence, follow the steps to complete two tasks in one go:
- Go to M1_root_directory/media/catalog/
- Create zip exclude product/cache folder
- Move zip file to the M1 root directory
- Transfer zip file to M2 server
- After transfer zip, move zip folder to pub/media/catalog
- Extract zip file in the catalog folder
- Run bin/magento catalog:images:resize
Moreover,
For exclude folder https://superuser.com/a/312302/433868
To transfer file use ssh wget command
The solution posted by @Rahul Gupta is also an alternative.
Hope it helps.
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
Hello @Aveeva
You just need to copy Magento 1 media folder to pub/media of Magento 2.
Then run the image resize command
php bin/magento catalog:images:resize
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
@theMageComp May i know why i need to run image resize ? Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
@Aveeva if you want to add the path of M1 server then you can follow the steps as suggested by @theMageComp and @Meetanshi but if you are using CDN ans Stack path for saving images on another server then you can go for the option suggested by me.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
@Aveeva Sometimes when you upload images to the server, they doesn't show on frontend for the first time.
So not getting this issue we use this command and it works as per you have done the settings in your theme.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
Hello @Aveeva
@Rahul Gupta already replied for your query.
It's because only copying the images, images won't start showing in frontend.
You need to run the image resize command, it will resize the images for your custom theme and set in cache for you to load the images then.
200+ Premium Magento 2 Extensions Need help? Hire Magento Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
@Rahul Gupta @theMageComp @Meetanshi How to add other server images permanently, we maintain separate server for images. Here how can i add my magento 1.9 image to magento 2.3.3.
Note : I am not looking copy and move, I just want my magento 2.3.3 take images form other server.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to add other server image path to Magento 2.3.3?
@Aveeva if you want to use the images from another server then you can go for the option suggested by me.
You can save that server path in the admin panel.
Please check my first reply.
Thanks!