TomatoCart - New Generation Open Source eCommerce

22391 Downloads
46 users online
Notice
  • The administrator has disabled public write access.
  • Only logged-in/registered users are allowed to contribute to the forum.
Home Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

Cannot upload image for product
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Cannot upload image for product
#1934
Re:Cannot upload image for product 1 Month, 3 Weeks ago Karma: 0
"You have to install it and compile php with it." ? I am sorry it is not helpful if you don't have control over web server. In my country most of us don't own servers we just pay for web hosting and rely on them what they will give us. Fortunately they give us at least GD but not ImageMagick, so installing and compiling php is not option for so many people. I even run into server where I can't use .htaccess and it is not free webhosting
Rado
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Czech Republic Birthday: 07/19
The administrator has disabled public write access.
 
#1935
Re:Cannot upload image for product 1 Month, 3 Weeks ago Karma: 0
ingricardo wrote:
Hi,

I have same problem.
I see that in directory /var/www/tomatocart/mages/products/originals/
its the image. But in the others directory not.
directories: large mini product_info thumbnails

So. Copy the image in the others directory.
The ploblem is the image size in each directory. we need edit the size for each image.


Try my change in \tomatocart\admin\includes\functions\general.php
I commented section between line 374-383 like this

$im_p = imageCreateTrueColor($dest_width, $dest_height);
/* imageAntiAlias($im_p,true);
imagealphablending($im_p, false);
imagesavealpha($im_p,true);
$transparent = imagecolorallocatealpha($im_p, 255, 255, 255, 127);
for($x=0;$x<$dest_width;$x++) {
for($y=0;$y<$dest_height;$y++) {
imageSetPixel( $im_p, $x, $y, $transparent);
}
}
*/

It works for me.
Rado
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Czech Republic Birthday: 07/19
Last Edit: 2010/07/17 09:45 By Rado.
The administrator has disabled public write access.
 
#1954
Re:Cannot upload image for product 1 Month, 3 Weeks ago Karma: 0
Excellent. !!!!

its works for me too.



Thanks.
ingricardo
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1963
Re:Cannot upload image for product 1 Month, 3 Weeks ago Karma: 0
This problem was fixed today by developers in code repository. You can patch your file with fixed code or you can download new version with some new stuff from svn

here is fixed code
code.google.com/p/tomatocart/source/detail?spec=svn130&r=56

$im_p = imagecreatetruecolor($dest_width, $dest_height);
imagealphablending($im_p, true);
$color = imagecolortransparent($im_p, imagecolorallocatealpha($im_p, 255, 255, 255, 127));
imagefill($im_p, 0, 0, $color);
imagesavealpha($im_p, true);

I just tested it, work like charm Thanks for update.
Rado
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Czech Republic Birthday: 07/19
The administrator has disabled public write access.
 
Go to topPage: 12

Latest Blog Post

Online store that you may have the best shopping experience

Which online store do you have the best shopping experience at?The design style is your cup of tea? You love ...

Blog | Yvonne Chen | Friday, 3 September 2010

More in: About Us

-
+
3

contact_us

Elootec
Qingyang Road 333 Wuxi
Jiangsu Province 214023 P.R.China
+86-510-85756831
info@tomatocart.com
http://www.tomatocart.com

Newsletter Subscription

Name:

E-Mail:

Receive HTML?