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

Notification

Icon
Error

Options
Go to last post Go to first unread
Del  
#1 Posted : Thursday, December 10, 2009 1:41:44 AM(UTC)
Del

Rank: Member

Groups: Member
Joined: 12/9/2009(UTC)
Posts: 10

I am using ImageUploader 4.8

It has been working fine uploading 2 thumbs (and not the original image) to my site for about a year.

Now i am looking at selling prints of images from my site, (at cost price, so i need to keep server overheads to a minimum) and need it to upload a third thumb to fit a 1600x1600 area. (actual dimensions will depend on horizontal/vertical ratio, but largest dimension is to be 1600px)

That requires 3x thumbs to be created.

Thumb 3 @ 120 x 80 px
Thumb 2 @ 700 x 700 px (max fit dimensions depending on ratio of image)
Thumb 1 @ 1600 x 1600 px (max fit dimensions depending on ratio of image)

In the past, all thumbs have been made fine.

Now, using the ActiveX control, they work fine.
However using Java, the largest thumbs, (Thumb 1) are reverting to the icon default of 100px max dimensions, which is causing me massive problems. Most of our users will be uploading images through Firefox/Chrome etc, which uses the java version.

I have tried many things to get round this but with no success.


My code is below:

var iu = new ImageUploaderWriter("ImageUploader", 780, 600);

// If you do not want to use ActiveX or Java version, set the appropriate
// property to false.
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;

//Locations of the compiled codefiles
iu.activeXControlCodeBase = "ImageUploader4.cab";
iu.javaAppletCodeBase="/";

// ... initialize params as described in the next topic ...
iu.addParam("LicenseKey", "xxx;yyy");

//Set 2-Pane layout
iu.addParam("PaneLayout", "1");

//Set the folder view
iu.addParam("FolderView", "Thumbnails");

//Set the text of the upload button
iu.addParam("ButtonSendText", "Upload Snaps");

//Allow auto-rotate of images from exif data
iu.addParam("AllowAutoRotate", "true");

//Allow the larger preview window
iu.addParam("AllowLargePreview", "true")

//Set the select/deselect button to select/check all items
iu.addParam("CheckFilesBySelectAllButton", "true");

//Allow user to edit the descriprions
iu.addParam("DescriptionsReadOnly", "true");

//Show the edit description button
iu.addParam("FolderPaneShowDescriptions", "false");

//Show the edit description button (Another setting)
iu.addParam("ShowDescriptions", "false");

//Set Allowed file types
iu.addParam("FileMask", "*.jpg;*.jpeg");

//Max number of files to upload
iu.addParam("MaxFileCount", "250");

//Max individual file size
iu.addParam("MaxFileSize", "4194304");

//Max total file size (0 = unlim)
//iu.addParam("MaxTotalFileSize", "0");

//Set the number of files to upload per package
//iu.addParam("FilesPerOnePackageCount", "1");

//Number if simultaneous connections for the client to use
//iu.addParam("MaxConnectionCount", "1");

//Set how many tries to attempt an upload (1 minimum)
//iu.addParam("AutoRecoverMaxTriesCount", "5");

//Time in ms between upload retries
//iu.addParam("AutoRecoverTimeOut", "5000");

//Display the debug window
iu.addParam("ShowDebugWindow", "true");

//Upload orig file
iu.addParam("UploadSourceFile", "false");


//Configure thumbnail1 settings - Print Image
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "1600");
iu.addParam("UploadThumbnail1Height", "1600");
iu.addParam("UploadThumbnail1JpegQuality", "75");
iu.addParam("UploadThumbnail1FallbackMode", "SourceFile");


//Configure thumbnail2 settings - Larger Image
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "700");
iu.addParam("UploadThumbnail2Height", "700");
iu.addParam("UploadThumbnail2JpegQuality", "75");
iu.addParam("UploadThumbnail2Watermark",
"ImageUrl=../GraphicsNew/SNOWatermark.gif;" +
"Position=BottomCenter;Opacity=100;ImageWidth=225;ImageHeight=75;");
//If thumb cannot be created for any reason, use the original file
iu.addParam("UploadThumbnail2FallbackMode", "SourceFile");

//Configure thumbnail3 settings - Small thumb
iu.addParam("UploadThumbnail3FitMode", "Fit");
iu.addParam("UploadThumbnail3Width", "120");
iu.addParam("UploadThumbnail3Height", "80");
iu.addParam("UploadThumbnail3JpegQuality", "80");

//Pre-Upload events
iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload")

//Configure URL files are uploaded to.
iu.addParam("Action", "../IUCode.aspx")

//Configure URL where to redirect after upload.
iu.addParam("RedirectUrl", "../auth/uks_photolib.aspx?&EventKey=" + document.getElementById("ctl00_cph00_txtEventKey").value)


// As soon as you call this method, all necessary HTML code is inserted
// into the page on the current position. Alternatively, you can
// get the string with appropriate HTML code using the getHtml method,
// and write it to the necessary position manually (maybe with some modifications).
iu.writeHtml();


I have tried various things to try and upload the original file if creating the thumb fails, but none of them seem to work.
I do not want to have to upload all the original images as we have lots of photographers working for us, and this would eat disk space. we currently have about 500,000 images, each with a thumb and a larger version.

This is looking to be expanded to:
a thumb, 120 x 80 px
a viewable image, 700 x 700 px (with watermark)
a printable image, 1600 x 1600 px

If we upload the original files, the space, server power etc will cost more than we will make off the prints.

Basically, after all of that, is there a reliable way i can create all of the 3 thumbs, with watermark where needed, whilst keeping file sizes to a minimum, and transfer speeds high.

Kindest Regards,

Del
Dmitry  
#2 Posted : Thursday, December 10, 2009 4:38:23 AM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Del,

Could you, please, submit support case regarding this problem? Our support team will assist you promptly.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Del  
#3 Posted : Friday, December 11, 2009 5:12:07 AM(UTC)
Del

Rank: Member

Groups: Member
Joined: 12/9/2009(UTC)
Posts: 10

Support case created!
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.