Jump to content

Best way to import images


jobim

Recommended Posts

  • 2 weeks later...

Hi, in my solution:

1- Pictures have names as 'product.reference'.jpg and are puted somwhere by FTP (all pictures in one folder)

By php script:

2- I'm looking for images types and dimentions at a table image_type

3- Getting picture by picture from FTP location, resize it to fit dimentions from table, changeing they name to

id_product-id_picture_-picture_type.jpg and puuting it to folder PRESTA_BASE/img/p (yes Im using old image storage type)

4- Then I putting image info into prefix_image, prefix_image_lang and prefix_image_shop tables

END

All working fine for me. I think better solution is use Presta Image controller - but I dont know how.

Anyone know??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...