- Posts: 39
- Thank you received: 0
Different image sizes -> blurr
I wanted to change the size of the product page.
Here my settings:
config->files-> width: 130 height 113
.hikashop_product_main_image_thumb img{
width: auto!Important;
height: 153px!Important;
}
.hikashop_product_image img {
width: auto!Important;
height: 110px!Important;
}
I've tried to give the images a height and an automatic width, so that there is no blurr anymore.
I thought that when I change in config.->files: width: , height: 113 it would give it a no-blurry image.
This works, the image is shown clear, but there is a big warning:
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /homepages/44/d209303546/htdocs/mysite/Joomla/administrator/components/com_hikashop/helpers/image.php on line 281
Warning: imageantialias(): supplied argument is not a valid Image resource in /homepages/44/d209303546/htdocs/mysite/Joomla/administrator/components/com_hikashop/helpers/image.php on line 297
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /homepages/44/d209303546/htdocs/mysite/Joomla/administrator/components/com_hikashop/helpers/image.php on line 300
Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /homepages/44/d209303546/htdocs/mysite/Joomla/administrator/components/com_hikashop/helpers/image.php on line 281
Warning: imageantialias(): supplied argument is not a valid Image resource in /homepages/44/d209303546/htdocs/mysite/Joomla/administrator/components/com_hikashop/helpers/image.php on line 297
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /homepages/44/d209303546/htdocs/mysite/Joomla/administrator/components/com_hikashop/helpers/image.php on line 300
How can I get a clear image with no blurr?
Regards,
Storm
Please Log in or Create an account to join the conversation.
These errors means that you probably have misconfigured the settings of the files tab of the configuration. Could you do a screenshot ?
Please Log in or Create an account to join the conversation.
When I set 130px as width, the warning disappears, but the blurr appears then.
Please Log in or Create an account to join the conversation.
If your thumbnails are blurred after you changed your thumbnails size, you need to go to the folder media/com_hikashop/upload/thumbnails via FTP and delete all the files. HikaShop will then automatically recreate the thumbnails.
Please Log in or Create an account to join the conversation.
btw the picture itself isn't blurry
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The thumb on the product page is blurry, when I give in config->files->width: "(nothing)" and height: 113, the thumb isn't blurry anymore, but there is the warning. It would be perfect without the warning.
Please Log in or Create an account to join the conversation.
if(!$thumbnail_x || !$thumbnail_y){ return true; }
in the file administrator/components/com_hikashop/helpers/image.php before the line:
$new = $this->scaleImage($this->width, $this->height,$thumbnail_x,$thumbnail_y);
We're going to add that modification on our end as well for next version since we don't want to resize the thumbnails when one of the two values is not set.
Please Log in or Create an account to join the conversation.
It doesn't fix my problem.
Regards,
Storm
Please Log in or Create an account to join the conversation.
Could you also check that you don't have any space or other character in one of your thumbnails size fields of the configuration?
Please Log in or Create an account to join the conversation.
In config->files I've only set height to 113, in width is nothing written.
In the frontpage, the products name is displayed twice now. One on top and one below the first name.
The image on the product page is displayed wrong (1x5px).
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We looked at the problem and made some additional modifications to the code which we will include in next release.
We made our tests on the product:
Siemens 6ES5948-3UR23
which now has two additional images with their thumbnails generated automatically with only the height parameter present.
Please Log in or Create an account to join the conversation.
Here is the way it works:
Hikashop->config.->files-> height: (the size you want on the product page), width: nothing
Now the images on the product listing are too big, so we give them a height and autom. width:
Regards,
Storm
Please Log in or Create an account to join the conversation.
I also added some code to for the category listings also:
.hikashop_category_image img {
height: 108px!Important;
width: auto!Important;
}
.hikashop_category_image { //because of a margin caused of the height set in files
height: 108px!Important;
width: auto!Important;
}
Please Log in or Create an account to join the conversation.