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

Notification

Icon
Error

Options
Go to last post Go to first unread
ballistar  
#1 Posted : Sunday, August 22, 2004 11:10:00 PM(UTC)
ballistar

Rank: Member

Groups: Member
Joined: 8/22/2004(UTC)
Posts: 1

Is there a way to get the thumbnail width and height at the client browser before the upload? An object value that can be read with Javascript?
Fedor  
#2 Posted : Sunday, August 22, 2004 11:25:00 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Image Uploader 3.0 supports retreiving source image width and height before upload. Using source image size you can calculate thumbnails size easy. Image Uploader 3.0 also uploads to server width and height of created thumbnails as additional fields.

Image Uploader 3.0 will be available in 1-2 days.

Best regards,

Fedor Skvortsov

Fedor  
#3 Posted : Tuesday, September 7, 2004 11:40:00 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
You can get width and height of image using UploatItems collection.

Code:
for (i=1;i<=ImageUploader.UploadItems.Count;i++){
    var uploadItem = ImageUploader.UploadItems.Item(i)
    var iWidth = uploadItem.Width;
    var iHeight = uploadItem.Height;
}

========================================================

02/14/2008, Fedor

This topic is out of date.

You should use iuembed.js syntax and plain upload item API (UploadFileXXX methods) now:

Code:
var upl = getImageUploader("ImageUploaderID");

for (var i = 1; i<= upl.getUploadFileCount(); i++){
    var iWidth = upl.getUploadFileWidth(i);
    var iHeight = upl.getUploadFileHeight(i);
}

========================================================

Edited by user Wednesday, October 29, 2008 3:24:55 AM(UTC)  | Reason: Not specified

Best regards,

Fedor Skvortsov

Users browsing this topic
Guest
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.