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

Notification

Icon
Error

Options
Go to last post Go to first unread
hyperlinked  
#1 Posted : Saturday, June 7, 2008 10:36:05 AM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

I've been testing out the Java version of IU and I'm finding that the image rotation isn't working. Is there some special code I need to enable for the image rotation to work? I click on the circular arrows to rotate the thumbnails in my upload pane and then upload the images. When I see the results, they images end up in their original orientation.
Eugene Kosmin  
#2 Posted : Monday, June 9, 2008 11:17:40 AM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 438

Was thanked: 22 time(s) in 22 post(s)
Hi,

Could you post your IU embedding code here?

And what IU version you are using? I've tried to reproduce it with IU 5.1.10 and there were no success.
Best regards,
Eugene Kosmin.
Aurigma Development Team
hyperlinked  
#3 Posted : Monday, June 9, 2008 2:20:22 PM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

Hi Eugene,

Yes, I'm using the IU 5.1.10 version.

Here's my embedding code:

Code:

	<script type="text/javascript">
	<!--
		
		//<![CDATA[	
		function fullPageLoad()
		{    
			getImageUploader("ImageUploader1").RenameField("SourceFile_[ItemIndex]", "image");
			getImageUploader("ImageUploader1").setAdditionalFormName("IPBform");
			value = getImageUploader("ImageUploader1").getAdditionalFormName();
		}
		
		function ImageUploader1_BeforeUpload() {
			getImageUploader("ImageUploader1").setButtonStopText("Stop");
			needToHideButtonStop = false;	
		}
		
		function ImageUploader1_Progress(Status, Progress, ValueMax, Value, StatusText) {
			//Stop button should be displayed only during the upload process. If the upload 
			//completed (either successfully or not), the button should be hidden.
			needToHideButtonStop = (Status=="COMPLETE" || Status=="ERROR" || Status=="CANCEL");
		}
		
		//Create JavaScript object that will embed Image Uploader to the page.
		var iu = new ImageUploaderWriter("ImageUploader1", 580, 180);
		
		//For ActiveX control full path to CAB file (including file name) should be specified.
		iu.activeXControlCodeBase = "ImageUploader5.cab";
		iu.activeXControlVersion = "5,1,10,0";
		
		//For Java applet only path to directory with JAR files should be specified (without file name).
		iu.javaAppletJarFileName = "ImageUploader5.jar";
		iu.javaAppletCodeBase = "assets/";
		iu.javaAppletCached = true;
		iu.javaAppletVersion = "5.1.10.0";
		
		iu.showNonemptyResponse = "dump";
		
		iu.addParam("AdditionalFormName", "");
		
		//Set and configure advanced details view.
		iu.addParam("PaneLayout", "OnePane");
		iu.addParam("UploadView", "Thumbnails");
		iu.addParam("DetailsPreviewThumbnailSize", "30");
		iu.addParam("ShowButtons", "false");
		
		iu.addParam("PaneBackgroundColor", "#ffffff");
		
		//Configure License Keys
		iu.addParam("LicenseKey", "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX; XXXXX-XXXXX-XXXXX-XXXXX-XXXXX");
		
		//Configure upload settings.
		iu.addParam("FilesPerOnePackageCount", "1");
		iu.addParam("AutoRecoverMaxTriesCount", "1");
		iu.addParam("AutoRecoverTimeOut", "10000");
		iu.addParam("MaxConnectionCount", "3");
		iu.addParam("AllowRotate", "true");
		iu.addParam("AllowAutoRotate", "false");

		if (iu.AddCookie) {
		    iu.AddCookie('session_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
		}
		
		//Set several URLs files should be uploaded to. In a real life most likely
		//you will specify URLs to different servers, however in this demo the single
		//server and page is used for brevity.
		iu.addParam("Action", "http://mywebsite.com");
		
		//Configure URL where to redirect after upload.
		iu.addParam("RedirectUrl", "http://mywebsite.com/index.php?act=mylists&CODE=review_upload");
		
		
		//Configure miscellaneous settings.
		iu.addParam("ShowDebugWindow", "true");
		iu.addParam("BackgroundColor", "#ffffff");
		iu.addParam("ShowContextMenu", "true");
		
		//Concurrent upload feature and advanced details view are not supported in Java version yet. 
		//This way we need to get Java version working in standard mode (sequential upload with standard
		//progress dialog).
		if (iu.getControlType() == "ActiveX"){
			iu.addParam("SilentMode", "true");
			var needToHideButtonStop = false;
		
			iu.addEventListener("BeforeUpload", "ImageUploader1_BeforeUpload");
			iu.addEventListener("Progress", "ImageUploader1_Progress");
		
			//Use timer to check whether to hide the Stop button. It allows to avoid the button flickering.
			window.setInterval("if (needToHideButtonStop) {getImageUploader('ImageUploader1').setButtonStopText(''); needToHideButtonStop = false;}", 500);
		}
		iu.fullPageLoadListenerName = "fullPageLoad";
		
		//Tell Image Uploader writer object to generate all necessary HTML code to embed 
		//Image Uploader to the page.
		iu.writeHtml();

		//]]>
		//-->
		</script>
George Ulyanov  
#4 Posted : Tuesday, June 10, 2008 4:20:17 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups:
Joined: 7/26/2006(UTC)
Posts: 203

Hello,

I don't see any property-fields for the thumbnail generation (like 'UploadThumbnailNFitMode', etc). In this case Image Uploader will send the source image only (without any rotations and so on).
Best regards,
George Ulyanov
hyperlinked  
#5 Posted : Thursday, June 12, 2008 3:03:59 PM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

Thanks George,

Does this mean that rotations will only get processed if the source image has a thumbnail uploaded with it? Does the rotation get applied only to the thumbnail or to both the thumbnail and the source file?
Eugene Kosmin  
#6 Posted : Sunday, June 15, 2008 4:05:52 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 438

Was thanked: 22 time(s) in 22 post(s)
Source file is sent without any modifications. Rotation can be applied only to images generated by Image Uploader, i.e. thumbnails.
Best regards,
Eugene Kosmin.
Aurigma Development Team
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.