Page 1 of 1

Opencart 2.0 black image in products page

Posted: Wed Jul 08, 2015 11:38 pm
by Farzana
Hi all,

I am trying to upload an image for a product but I continuously see a black image in products list page for that item.

Although the detail page is displaying the image but the products page is not. Please see below

http://vaadprinting.com/index.php?route ... s=1-1#p116

The NCR-Receipt image in here.

Thanks!

Re: Opencart 2.0 black image in products page

Posted: Thu Jul 09, 2015 7:43 am
by IP_CAM
Not commenting on your missing image, but after seeing such things, as shown below, on one single Page,
I assume, you still have some work to do, to get your site done according 'Web-Standards':

Code: Select all

Catalog Cover_Page_1-150x217.jpg
BMS Greeting-150x217.jpg
Pizza Da Solo Menu (1)-150x217.jpg
Bedding 85 x 55 postcard-150x217.jpg

Code: Select all

<link href="//fonts.googleapis.com/css?family=Open+Sans:400,400i,300,700" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Raleway:400,500,700,600,800' rel='stylesheet' type='text/css'>
no offense, just information.
Ernie

Re: Opencart 2.0 black image in products page

Posted: Thu Jul 09, 2015 8:16 am
by agatha65
Clean your image cache and check it.
This is the wrong image in the image/cache/catalog folder
http://vaadprinting.com/image/cache/cat ... 50x217.jpg
Also you have to fix a lot of errors - check the inspect element console

Re: Opencart 2.0 black image in products page

Posted: Thu Jul 09, 2015 11:00 pm
by Farzana
Hi,

Thank you for your responses. I did try to clear image cahce but it does not work.After refreshing several times the black image comes back.
And when I open admin to add a new image for this product I got this error. But this error also disappears after I refresh 2-3 times

Warning: imagecopyresampled() expects parameter 2 to be resource, string given in /home/vaadprinting/public_html/vqmod/vqcache/vq2-system_library_image.php on line 101Warning: imagedestroy() expects parameter 1 to be resource, string given in /home/vaadprinting/public_html/vqmod/vqcache/vq2-system_library_image.php on line 103Warning: imagecopyresampled() expects parameter 2 to be resource, string given in /home/vaadprinting/public_html/vqmod/vqcache/vq2-system_library_image.php on line 101Warning: imagedestroy() expects parameter 1 to be resource, string given in /home/vaadprinting/public_html/vqmod/vqcache/vq2-system_library_image.php on line 103Warning: imagecopyresampled() expects parameter 2 to be resource, string given in /home/vaadprinting/public_html/vqmod/vqcache/vq2-system_library_image.php on line 101Warning: imagedestroy() expects parameter 1 to be resource, string given in /home/vaadprinting/public_html/vqmod/vqcache/vq2-system_library_image.php on line 103

Actually I am not the one who developed this website. I have been given this to fix this issue. I am new to open cart,

any help is much appreciated.

Thanks!

Re: Opencart 2.0 black image in products page

Posted: Thu Jul 09, 2015 11:42 pm
by qahar
Just wondering what is the type of original file? .png, .jpg or may be .gif?
If .png, does it have white block or transparent background?
What about the image size?

My prediction is the image have large size not just in dimension width and height but also file size.
When narrowed to small size image the color line is become blur and the system cannot read it so it's send black image (corrupt).
Related to your parameter 1 and 2 issue possibly related to file size is to big.

Re: Opencart 2.0 black image in products page

Posted: Thu Jul 09, 2015 11:47 pm
by Farzana
Thanks everyone for your help and replies, i got it working, had to reduce the image size and it started working.

Thanks again!