Jump to content

Broken images after generating thumbnails. PLease Help.


Recommended Posts

Hi, after i change the image width and height on the homepage featured product,

 

change this:

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />

 

to this:

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($featuredSize)} width="{$featuredSize.width}" height="{$featuredSize.height}"{/if} />

 

and also added image to preferences-->image:

featured_default and set to 150x150

 

and "generate thumbnails-->product-->featured_default"

 

The images are all damaged/broken/pixelated on the whole website.

 

The url is http://monalisadress.com/

 

Please Help me fix this..Thanks in advance.

Link to comment
Share on other sites

regenerating image by back office prestashop, is a bull.!

I ts true, all images are very bad quality. and your website very slow.

 

May be, you can try to do it again. and if it s not working again, i think you will need to put you image by FTP... before, and if not too.. change one by one.!! I knows, could be long work.. ! but.! This kind of change, need to be at the begining of develloppement..

 

Anyway, good luck

Link to comment
Share on other sites

  On 5/20/2013 at 7:55 PM, BriceVanZeg said:

regenerating image by back office prestashop, is a bull.!

I ts true, all images are very bad quality. and your website very slow.

 

May be, you can try to do it again. and if it s not working again, i think you will need to put you image by FTP... before, and if not too.. change one by one.!! I knows, could be long work.. ! but.! This kind of change, need to be at the begining of develloppement..

 

Anyway, good luck

  On 5/20/2013 at 7:55 PM, BriceVanZeg said:

regenerating image by back office prestashop, is a bull.!

I ts true, all images are very bad quality. and your website very slow.

 

May be, you can try to do it again. and if it s not working again, i think you will need to put you image by FTP... before, and if not too.. change one by one.!! I knows, could be long work.. ! but.! This kind of change, need to be at the begining of develloppement..

 

Anyway, good luck

 

I found out the the images in /img/p/ like home, large, medium, small, thickbox, etc. are all broken.

 

Is there any file where i can get the original home, large, medium, small, thickbox, etc. images?

Link to comment
Share on other sites

  On 5/20/2013 at 7:45 PM, alexeeve said:

Hi, after i change the image width and height on the homepage featured product,

 

change this:

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="{$homeSize.width}" height="{$homeSize.height}"{/if} />

 

to this:

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($featuredSize)} width="{$featuredSize.width}" height="{$featuredSize.height}"{/if} />

 

and also added image to preferences-->image:

featured_default and set to 150x150

 

and "generate thumbnails-->product-->featured_default"

 

The images are all damaged/broken/pixelated on the whole website.

 

The url is http://monalisadress.com/

 

Please Help me fix this..Thanks in advance.

 

i think you have made a mistake in homefeatured module send a variable from php page which is $homeSize and it get home_default size. if you change that variable from php file that will be ok . other wise you will not got image size correctly .

Link to comment
Share on other sites

Just to see if the problem is in getting the values of width and height or $featuredsize, try just some fixed values instead of variable values and see if the pics reappear.

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'featured_default')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" width="150" height="150" />

 

 

my 2 cents,

pascal

Link to comment
Share on other sites

  • 2 weeks later...

Hi all,

 

Thanks for your help. I tried it all but no changes so what i did is i download the img folder and check the img/p/ folder.. The images are all broken so i manually edit the sizes with photoshop and resized them like: large, medium, home, etc. and upload them using ftp and all are good but there is still a problem.. When i upload a new product image the result is broken images on all sizes..

Link to comment
Share on other sites

use the homeSize instead the featuredSize variable here: width="{$featuredSize.width}" height="{$featuredSize.height}

because in php you've got:

 

'homeSize' => Image::getSize(ImageType::getFormatedName('home')),
Link to comment
Share on other sites

  • 1 month later...

Hi Vekia,

 

what's the sense of using

height="{$homeSize.height}" width="{$homeSize.width}"

?

 

if I comment it out it works...

{*height="{$homeSize.height}" width="{$homeSize.width}"*}

 

 

what are the counter-effects of such practice?

in alternative setting height with .css could be a workaround...

Link to comment
Share on other sites

×
×
  • Create New...