X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Now To Update Images (https://forum.x-cart.com/showthread.php?t=78115)

johngwms 01-17-2021 04:03 AM

Now To Update Images
I need to be able to update my product images. Currently they are 1000px in the longest dimension but I need to make them square (1000x1000).

If I use Filezilla to update the product images in /httpdocs/images/product, I am unable to get them to display in the new format. I have rebuilt the store hoping it would rebuild the cache but they are still displaying in the old format.

What am I doing wrong?

cflsystems 01-17-2021 06:21 AM

Re: Now To Update Images
It is not as simple as to copy images to that directory. XC works from var directory so all images are generated in there with different dimensions - so they are served with exact dimensions where needed instead of html scaling.
The product_images table in the database also lists all images, their dimensions and size. So this is something to correct as well.
Redeploying the store will not do anything to images.
Try the "generate resized images" under Look & Feel / Images Settings. However this may only generate the needed images in the var directory and not update the database with proper info. So you may need some custom coding to run a process to properly update the product images table info.

johngwms 01-18-2021 01:25 AM

Re: Now To Update Images
Thanks Steve

Actually , I just need to make sure that the images column product export csv file refers to images in the 1000 x 1000 format.

Thank you for explaining the process in XCart.

All times are GMT -8. The time now is 01:23 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.