TomatoCart

TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?

Cannot upload image for product
(1 viewing) (1) Guest
Go to bottomPage: 1234
TOPIC: Cannot upload image for product
*
#1934
Re:Cannot upload image for product 4 Years, 2 Months ago Karma: 1
"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
Senior Boarder
Posts: 62
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 4 Years, 2 Months ago Karma: 1
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
Senior Boarder
Posts: 62
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 07:45 By Rado.
The administrator has disabled public write access.
 
#1954
Re:Cannot upload image for product 4 Years, 2 Months 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 4 Years, 2 Months ago Karma: 1
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
Senior Boarder
Posts: 62
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.
 
#3721
Re:Cannot upload image for product 4 Years ago Karma: 0
this thing worked fine ???
napoleon2121
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3741
Re:Cannot upload image for product 4 Years ago Karma: 1
Unfortunately no I was too quick with my last post here. It worked on server where I had problem with image upload but later I found on another server not even this patch in svn worked
Please try just comment out part of code as I wrote before. This way still work best for me.
Rado
Senior Boarder
Posts: 62
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 top Page: 1234
Moderators: creativegenius

Latest Blog Post

TomatoCart v1.1.7 to v1.1.8 Upgrade Guide!

The upgrade guide is a step-by-step tutorial to help users to upgrade TomatoCart v1.1.7 to v1.1.8. If you have not yet updated to v1.1.7, please review its upgrade guide before applying these changes. [...]

By TomatoCart | august 21, 2012

contact_us

info@tomatocart.com
partner@tomatocart.com
Facebook Google+ Linkedin Twitter

Newsletter Subscription

Fork us on GitHub