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

Notification

Icon
Error

Options
Go to last post Go to first unread
mfiore  
#1 Posted : Tuesday, January 23, 2007 12:01:34 AM(UTC)
mfiore

Rank: Member

Groups: Member
Joined: 1/22/2007(UTC)
Posts: 1

i am trying to watermark each image with its own description text but having problems.

does the imageuploader control allow each image to have a different watermark?

or do all images have to have the same watermark?

Code:
function ImageUploader_BeforeUpload() {
	var IU = getImageUploader("ImageUploader1");
	for (i=0;i<=IU.getUploadFileCount();i++ ){
		IU.setUploadThumbnailWatermark(1, "Text='" + IU.getUploadFileDescription(i) + "';Position=TopLeft;Size=20;Background=true;BackgroundColor=#FFFFFF;Outline=true;OutlineColor=#000000");
	}
}

I set

Code:
iu.addParam("FilesPerOnePackageCount", "1");

with no luck

all images uploaded get the same watermark from the description of the last image selected?

(because the value of the last description gets applyed to the whole group?)

i also tried this and got a script error

Code:
function ImageUploader_BeforeUpload() {
	var IU = getImageUploader("ImageUploader1");
	var IUS = IU.getUploadItems()
	for (i=0;i<=IU.getUploadFileCount();i++ ){
		IUS(i).setUploadThumbnailWatermark(1, "Text='" + IU.getUploadFileDescription(i) + "';Position=TopLeft;Size=20;Background=true;BackgroundColor=#FFFFFF;Outline=true;OutlineColor=#000000");
	}
}

any help would be appreciated.

Matt

Edited by user Wednesday, February 20, 2008 5:45:21 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Tuesday, January 23, 2007 3:22:51 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello Matt,

UploadThumbnailWatermark property is common for all uploaded files, i.e. the same watermark will be applied to all the images. It is not applicable for your needs.

You can not use the BeforeUpload event because it is called only once before first package upload. We are going to make a new event which will be called PackageBeforeUpload which would be fired before every package upload. This feature will be available in Image Uploader 4.5. If you are interested in getting it earlier feel free to write to sales@aurigma.com.

Edited by user Thursday, May 22, 2008 9:15:42 PM(UTC)  | Reason: Not specified

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

FuckFame.nl  
#3 Posted : Friday, January 26, 2007 4:49:04 PM(UTC)
FuckFame.nl

Rank: Member

Groups: Member
Joined: 12/22/2006(UTC)
Posts: 13

Quote:
Alex Makhov (1/23/2007)This feature will be available in Image Uploader 4.5. If you are interested in getting it earlier feel free to write to sales@aurigma.com.

Offtopic: And this is what I call "service" !! :)

My reseller also asked me if I want an earlier release iff possible, because I couldn't fix the PNG-image-watermark problem.

But after 3-4hours of coding I found out how to watermark a photo with a watermark-image (PNG), using the upload-process.

But, Aurigma; great service!

Edited by user Thursday, May 22, 2008 7:14:29 PM(UTC)  | Reason: Not specified

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.