Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
bruno.brown  
#1 Posted : Tuesday, May 3, 2011 6:09:43 PM(UTC)
bruno.brown

Rank: Newbie

Groups: Member
Joined: 5/3/2011(UTC)
Posts: 2

Is there a way to config the uploader to resize the photos to a specific size befere the upload?

and is there a way to all the photos uploaded to be stored in a same folder? instead of each foto to have a unique option, like in the example in the site :

photo01.jpg glossy 8x6
photo02.jpg glossy 4x2
photo03.jpg glossy 4x6
photo04.jpg glossy 8x6

i want one order that will have one folder with all the fotos... is that posible?

Because i will do ONE art with all the photos. So, i dont need any info about each photo. I just need all the photos together....

HELP please...
and thanks!!!
Dmitry.Obukhov  
#2 Posted : Thursday, May 5, 2011 3:17:42 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Bruno,
Quote:
Is there a way to config the uploader to resize the photos to a specific size befere the upload?

You need to open this file:

includes\templates\template_default\templates\tpl_product_photo_info_display.php

The replace this line:
Code:
 //Upload original file
iu.addParam("UploadSourceFile", "true");

with the new ones:
Code:
 
//Upload original file
iu.addParam("UploadSourceFile", "false");
		  
//Configure thumbnail settings.
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "1024");
iu.addParam("UploadThumbnail2Height", "1024");
iu.addParam("UploadThumbnail2JpegQuality", "85");

You can change Width/Height and JpegQuality corresponding to your requirements.

Then open [i]includes\extra_cart_actions\photo_cart_actions.php[i] file, and replace it (line 182):
Code:
move_uploaded_file($_FILES["SourceFile_$index"]['tmp_name'], $folder . $fileName);

with:
Code:
move_uploaded_file($_FILES["Thumbnail2_$index"]['tmp_name'], $folder . $fileName);

Quote:
and is there a way to all the photos uploaded to be stored in a same folder?

Could you please explain it more detailed? We checked Zen Cart plug-in locally. It uploads images in folder.
If you mean removing Paper and Size fields, you will be able to turn off them in the Zen Cart admin.

Edited by user Thursday, May 5, 2011 3:21:16 AM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.