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

Notification

Icon
Error

Options
Go to last post Go to first unread
pve  
#1 Posted : Tuesday, June 14, 2011 12:47:17 AM(UTC)
pve

Rank: Newbie

Groups: Member
Joined: 4/4/2011(UTC)
Posts: 3

I like to use the new feature of setting the ratiobox to fixed. I have red the information about this but I get an error. I'm doing something wrong but I can't figuring out what. Any suggestions.

According to the information (http://www.aurigma.com/docs/iu7/P_P_ImageEditor_CropRatio.htm):

"4:3; fixed"

My sourcecode:
<ImageEditor CropRatio="0.75; fixed" CancelButtonText="Annuleren" CancelCropButtonText="Annuleer crop"
RotateButtonText="Draaien" SaveButtonText="Opslaan en afsluiten" />

Thanks in advance


Dmitry.Obukhov  
#2 Posted : Tuesday, June 14, 2011 2:30:02 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Patrick,

Thank you for this report. I replicate the problem locally. Unfortunately, it is a bug. Our developers will fix it in the next release of Image Uploader.

As a workaround, you can set it through JavaScript code in the InitComplete event:
Code:

<script>
    function InitComplete() {
        $au.uploader('UploaderID').imageEditor().cropRatio('0.75;fixed');
      }
</script>

I tried it, and it worked okay for me.

Note: please do not forget to set correct ID of Image Uploader control.

Edited by user Tuesday, June 14, 2011 2:30:44 AM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
pve  
#3 Posted : Thursday, June 16, 2011 3:14:56 AM(UTC)
pve

Rank: Newbie

Groups: Member
Joined: 4/4/2011(UTC)
Posts: 3

Thx for your answer. I have tried to put the InitComplete() function in my usercontrol (where the uploader is located) as well I tried putting it in croppedphotouploaddemo.js file. In both cases the function will not be fired?

Any suggestions what I'm overlooking?

Kind regards
Dmitry.Obukhov  
#4 Posted : Friday, June 17, 2011 2:28:13 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Patrick,

Please be sure that you correctly add InitComplete event as it is shown in samples of this topic.
As far as I understand you use ASP.NET. Here is sample code you can use:
Code:

function InitComplete() {
  $au.uploader('<%= Uploader1.ClientID %>').imageEditor().cropRatio('0.75;fixed');
}
<cc1:Uploader ID="Uploader1" runat="server" Height="470" Width="986"  LicenseKey="" />
  <ClientEvents> 
    <aur:ClientEvent EventName="InitComplete" HandlerName="InitComplete" />
</ClientEvents>
</cc1:Uploader>
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
pve  
#5 Posted : Tuesday, June 28, 2011 12:19:38 PM(UTC)
pve

Rank: Newbie

Groups: Member
Joined: 4/4/2011(UTC)
Posts: 3

I have tried to embed your code but it still looks it is not working. This is my implementation:

Code:
<script type="text/javascript">function InitComplete() {
        alert('test');
        $au.uploader('<%= Uploader1.ClientID %>').imageEditor().cropRatio('3:4;fixed');
    }

</script>
<aur:Uploader EnableAutoRotation="true" ID="Uploader1" runat="server" OnFileUploaded="Uploader1_FileUploaded"
    Width="100%" Height="500px" LicenseKey="<%$ AppSettings:ImageUploaderLicenseKey %>"
    EnableDescriptionEditor="false" EnableRotation="false" Language="Dutch" EnableUploadProgress="true"
    UploadButtonText="" OnAllFilesUploaded="Uploader1_AllFilesUploaded" LoadingFolderContentText="Laden content..." >
    <Converters>
        <aur:Converter Mode="*.*=Thumbnail" ThumbnailWidth="120" ThumbnailHeight="120" ThumbnailApplyCrop="true" />
        <aur:Converter Mode="*.*=Thumbnail" ThumbnailWidth="270" ThumbnailHeight="400" ThumbnailApplyCrop="true" />
        <aur:Converter Mode="*.*=Thumbnail" ThumbnailWidth="720" ThumbnailHeight="960" ThumbnailApplyCrop="true" />
    </Converters>
    <ClientEvents>
        <aur:ClientEvent EventName="BeforeUpload" HandlerName="onBeforeUpload" />
        <aur:ClientEvent EventName="UploadFileCountChange" HandlerName="onUploadFileCountChange" />
        <aur:ClientEvent EventName="AfterUpload" HandlerName="OkDialog" />
        <aur:ClientEvent EventName="Progress" HandlerName="onProgress" />
        <aur:ClientEvent EventName="InitComplete" HandlerName="InitComplete" />
    </ClientEvents>
    <FolderPane Height="330" />
    <%--<UploadPane ViewMode="List"></UploadPane>--%>
    <PaneItem ShowFileNameInThumbnailsView="true" ImageCroppedIconTooltip="Afbeelding is gecropped"
        ImageEditorIconTooltip="Preview / wijzig afbeelding" DescriptionEditorIconTooltip="Wijzig omschrijving"
        RemovalIconTooltip="Verwijder" RotationIconTooltip="Draaien">
    </PaneItem>
    <DetailsViewColumns InfoText="" LastModifiedText="Datum gewijzigd" DimensionsText="Afmetingen"
        FileNameText="Naam" FileSizeText="Grootte" />
    <Restrictions FileMask="*.jpg;*.jpeg;*.png;*.gif;*.bmp" MaxFileCount="3" />
    <%--<UploadSettings RedirectUrl="Gallery.aspx" />--%>
    <ImageEditor CropRatio="0.75" CancelButtonText="Annuleren" CancelCropButtonText="Annuleer crop"
        RotateButtonText="Draaien" SaveButtonText="Opslaan en afsluiten" />
    <Messages MaxFileCountExceeded="U kunt maximaal 3 foto's koppelen aan een artikel."
        UploadFailed="Upload is mislukt (de connectie is verbroken)." UploadCompleted="Upload compleet."
        UploadCancelled="Upload is geannuleerd." />
</aur:Uploader>
<aur:InstallationProgress ID="InstallationProgress2" TargetControlID="Uploader1"
    runat="server" ProgressImageUrl="../../Images/installation_progress.gif" ProgressCssClass="ip-progress"
    InstructionsCssClass="ip-instructions" UpdateInstructions="U moet de ImageUploader updaten. Klik <strong>Install</strong>  of <strong>Run</strong> knop wanneer u het installatievenster ziet. Ziet u het installatievernster niet, probeer dan de pagina opnieuw te laden."
    ProgressHtml='<p><img src=\"{0}\" /><br /> Laden Foto-editor...</p>' MacInstallJavaHtml='<p>Gebruik de <a href=\"http://support.apple.com/kb/HT1338\">Software Update</a>  feature (beschikbaar in het Apple menu)  om te controleren of u de laatste versie heeft van Java voor uw Mac.</p>'
    InstallJavaHtml='<p><a href=\"http://www.java.com/getjava/\">downloaden a.u.b.</a> and  installeer Java.</p>'
    IE8ProgressHtml="<p>Wacht a.u.b. tot de control is geladen.</p>" IE8InstructionsHtml="<p>Op de foto-editor te installeren, klik op de <strong>Informatiebalk</strong> en selecteer <strong>Installeer deze Add-on</strong> of <strong>Uitvoeren Add-on</strong> vanuit de keuzelijst.</p> <p>Klik dan of<strong>Uitvoeren</strong> of klik, nadat de pagina opnieuw is geladen, op <strong>Install</strong> wanneer u het installatievenster verschijnt. Als u de informatiebalk niet ziet, probeer dan de pagina te verversen of neem contact op met de klantenservice van Uitverkoop in Nederland.</p>"
    IE7ProgressHtml="<p>Wacht a.u.b. todat de foto-editor is geladen</p>" IE7InstructionsHtml="<p>Op de foto-editor te installeren, klik op de <strong>Informatiebalk</strong> en selecteer <strong>installeer ActiveX Control</strong> of <strong>Uitvoeren ActiveX Control</strong> vanuit de keuzelijst.</p> <p>Klik dan of<strong>Uitvoeren</strong> of klik, nadat de pagina opnieuw is geladen, op <strong>Install</strong> wanneer u het installatievenster verschijnt. Als u de informatiebalk niet ziet, probeer dan de pagina te verversen of neem contact op met de klantenservice van Uitverkoop in Nederland.</p>"
    IE6XPSP2ProgressHtml="<p>Wacht a.u.b. todat de foto-editor is geladen</p>" CommonHtml="<p>De foto-editor is noodzakelijk om foto's aan uw artikelen te koppelen.</p>">
</aur:InstallationProgress>


I have put a alert in the Init for checking if this event is fired but no alertbox sho
ws up so it looks like it is not firing.

The ImageUploader works great but to avoid strange sized images (never trust input of a customer) I want to project a fixed size box over the image when it has to be cropped. The user must n
ot be able to alter the size op the cropbox. They can only reposition the cropbox over the image.

I hope you guys can help me out.

Thanks

Kind regards
Dmitry.Obukhov  
#6 Posted : Wednesday, June 29, 2011 1:10:37 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Patrick,

I tried to replicate it locally. I created simple application based on your code snippet you listed. InitUpload() event fired when Image Uploader applet was rendered on the page and I got alert with ‘test’ message. cropRatio property setting such way worked fine too.

I attached my sample for your reference. Please download and try it out.
File Attachment(s):
iu7_InitCompleteSample.zip (4,459kb) downloaded 2 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Dmitry.Obukhov  
#7 Posted : Sunday, July 31, 2011 7:32:18 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Patrick,
I am glad to inform you that we have released Image Uploader 7.0.35 which is free of many issues.
Image Uploader 7.0.35 is available to download from our website. Please learn more about bug fixes and improvements of new version in What’s New? section.

If you have any additional questions or problems, please feel free to let us know. Our support team will be pleased to assist you.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
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.