Jump to content

New image system


Recommended Posts

Could someone explain the new image system in version 1.4.3 ?

Thanks...


Before this image storing, the PS used only one directory for every image (small, medium, large, thick, watermark etc.). For me, after a lot image, reaching the directory was not to easy. The ftp was read only 9998 files but it was about 15000.

So now, the system generates a folder for a product per ID.

Examples:
product id is 972
the folder should be img/p/9/7/2

It's easy and very usefull feature :)

If you're using a lot image you should update to the new storing method (and if you're ready, don't forget to regenerate your .htaccess file).
Link to comment
Share on other sites

In the BO, under the Tools > Information tab. In the end of the page should be green OK. It is almost the same like in the version updater.


They are ok.

Maybe it will not work because I have too many images (63000)
Link to comment
Share on other sites

  • 3 weeks later...

Hi friends

Has anyone tested wishlist images in the new filesystem?
I guess it's not working at all.

Image calling:

{$img_prod_dir}{$product.cover}-home.jpg

doesn't work.

I tried to use the new function to get images:

{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}

without sucess...

Any ideas?

Thanks

Link to comment
Share on other sites

  • 1 month later...

Hi friends<br/><br/>Has anyone tested wishlist images in the new filesystem?<br/>I guess it's not working at all.<br/><br/>Image calling:

{$img_prod_dir}{$product.cover}-home.jpg

doesn't work.<br/><br/>I tried to use the new function to get images:

{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}

without sucess...<br/><br/>Any ideas?<br/><br/>Thanks

 

Have you solved it?

Thanks.

Link to comment
Share on other sites

Sadly i found out there is only one way to currently show the pictures:

 

Switch your shop to dynamic mode regenerate the .htaccess and then it should basically work.

 

  1. If the pictures still don't show up, think of using the original template. sometimes there are renewals in there which might not be in the downloaded or customized template you guys use
  2. Copy the image-link of the broken images and put them in a list. try to find out where the problem could come from. if the i.e. the wishlist broken img-link is the same as the one of the detail pic, something seems to be wrong in the template.

 

I am currently searching for a similar solution, but can't handle this. somehow there seems to be too many specifications which could cause the probs...

http://www.prestashop.com/forums/topic/121964-lostimages/page__gopid__605850#entry605850

 

 

Furthermore ideas of the source of this problem:

  1. Images physically disapeared on the server... check if there is a picture in the searched path or if there is a similar path containing the pictures you're looking for
  2. possibly smarty 2 or 3 can cause this problem... i don't know if this really might be a problem using another smarty version, but it might be a source
  3. templates you use could be old or with elderly codes for showing the pictures
  4. language phrase in your url might be a problelm as well?
  5. ....

 

I am sure there might be loads of leeks which could cause this problem

Link to comment
Share on other sites

×
×
  • Create New...