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

Notification

Icon
Error

Options
Go to last post Go to first unread
chart  
#1 Posted : Tuesday, February 9, 2016 8:36:09 AM(UTC)
chart

Rank: Newbie

Groups: Member
Joined: 2/3/2016(UTC)
Posts: 6

I am new to Upload suite (Currently evaluating but will likely purchase full license) and am having an issue with the autorotation on saved thumbnails when uploading with IOS 9 devices. The auto rotation works great on Android all the way to the saved thumbnail file. However on ios 9 the preview thumbnail in the UI is auto rotated but the saved thumbnail is not rotated for some reason. Here is the markup and code I am using:

Code:

<aur:ImageUploaderFlash ID="Uploader1" runat="server" EnableAutoRotation="true"
	LicenseKey="[omitted]" Width="99%" Height="300px" Visible="false">
	<Converters>
        <aur:Converter Mode="*.*=Thumbnail" ThumbnailWidth="120" ThumbnailHeight="120" ThumbnailCopyExif="true" ThumbnailCopyIptc="true"/>
		<aur:Converter Mode="*.*=Thumbnail" ThumbnailWidth="800" ThumbnailHeight="600" ThumbnailCopyExif="true" ThumbnailCopyIptc="true"/>
	</Converters>
	<Restrictions FileMask="[['Images (*.jpg;*.jpeg;*.png;*.gif)', '*.jpg;*.jpeg;*.png;*.gif']]" />
</aur:ImageUploaderFlash>


Code:

Dim UploadedFile As Aurigma.ImageUploaderFlash.UploadedFile = e.UploadedFile

            Dim mappedSavePath As String = Context.Server.MapPath("~/Accounts/" + GroupID.ToString + "/images/")

            Dim folder As New IO.DirectoryInfo(mappedSavePath)
            If Not folder.Exists Then
                folder.Create()
            End If

            Dim ImagesInfo As Structures.ImageInfo = Images.GetImagesInfo(GroupID, VehicleID)
            Dim Sequence As Integer = ImagesInfo.MaxSequence
            Dim MainImageUID As Int64 = ImagesInfo.MainImageUID
            Dim MainFlag As Int16 = 0

            Dim fileUpload As HttpPostedFile = Context.Request.Files(0)

            'Insert the New Row into the Images table
            If MainImageUID = 0 Then 'And iCtr = 0 Then
                MainFlag = 1
            Else
                MainFlag = 0
            End If

            Sequence += 1

            Dim ImageUID As Int64 = Images.insImages(VehicleID, 0, GroupID, Sequence, MainFlag, DealershipID)

            Dim sFileName As String = "", sThumbFileName As String = ""

            If VehicleID.ToString = "[New]" Then
                sFileName = ImageUID.ToString + "_newtemp.jpg"
                sThumbFileName = ImageUID.ToString + "_newtemp_tn.gif"
            Else
                sFileName = ImageUID.ToString + ".jpg"
                sThumbFileName = ImageUID.ToString + "_tn.gif"
            End If
            
            ' Get source file
            Dim thumbnailCount As Int16 = 3
            Dim thumbnails As String() = New String(thumbnailCount - 1) {}

            'Save the Thumbnail File
            Dim thumbnailFile As ConvertedFile = UploadedFile.ConvertedFiles(0)
            thumbnailFile.SaveAs(Path.Combine(mappedSavePath, sThumbFileName))

            'Save the bigger File
            Dim BiggerFile As ConvertedFile = UploadedFile.ConvertedFiles(1)
            BiggerFile.SaveAs(Path.Combine(mappedSavePath, sFileName))


Any suggestions?

Thanks

Charles

Edited by user Tuesday, February 9, 2016 2:16:10 PM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Wednesday, February 10, 2016 4:40:31 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
What version do you use? Is it the latest one (8.5.49)? I have just tried to upload photos with different orientation from my iPad running under iOS 9.2.1 and it seems to work for me.

Please try to upload something at this online demo:

http://demo.aurigma.com/...ImageResize/Default.aspx

It has a similar code and in particular, auto rotation is enabled there.
chart  
#3 Posted : Wednesday, February 10, 2016 5:36:28 AM(UTC)
chart

Rank: Newbie

Groups: Member
Joined: 2/3/2016(UTC)
Posts: 6

I am using version 8.5.33.42763. I tested the demo with an IPhone 5 using latest ios and the medium thumbnail showed properly rotated but the large image was not rotated. I had looked at this demo before making my implementation. I have no need for the gallery so I just use the thumbnailfile.saveas method to save the image. Could this be the difference? Is the gallery required to get the proper rotation?

Thanks

Charles
Andrew  
#4 Posted : Wednesday, February 10, 2016 5:51:17 AM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
Try to update your uploader to the latest version: http://www.aurigma.com/downloads/upload-suite (download 8.5.49). I believe, it should fix the problem.
chart  
#5 Posted : Wednesday, February 10, 2016 7:12:31 AM(UTC)
chart

Rank: Newbie

Groups: Member
Joined: 2/3/2016(UTC)
Posts: 6

That fixed it. Thanks for your help.
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.