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

Notification

Icon
Error

Options
Go to last post Go to first unread
peeyush  
#1 Posted : Monday, July 18, 2011 9:41:49 PM(UTC)
peeyush

Rank: Newbie

Groups: Member
Joined: 7/18/2011(UTC)
Posts: 6

Thanks: 1 times
Hello

I'm having a problem with uploading cropped images. Although cropping has been enabled, the uploaded image is not the one that is cropped.

I'm using Aurigma Uploader ver. 7.0.28 with ASP.NET.

Code:
<cc1:Uploader ID="fleUploader" runat="server" Height="400" Width="600" LicenseKey=""
                        OnAllFilesUploaded="fleUploader_AllFilesUploaded">
                        <Converters>
                            <cc1:Converter Mode="*.*=SourceFile" />
                            <cc1:Converter Mode="*.*=Thumbnail" ThumbnailWidth="250" ThumbnailHeight="187" ThumbnailFitMode="Fit" />
                        </Converters>
                        <ImageEditor CropRatio="3.1" EnableCrop="true">
                        </ImageEditor>
                        <Restrictions FileMask="*.pdf;*.jpg;*.jpeg;*.bmp;*.png;*.gif" MaxFileCount="10" />                        
</cc1:Uploader>


Thanks

Edited by moderator Monday, July 18, 2011 9:46:01 PM(UTC)  | Reason: Not specified

p.shirykalova  
#2 Posted : Monday, July 18, 2011 10:01:13 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups:
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Hello,

Please try to set "true" value to ThumbnailApplyCrop Property of your Converter.
Code:

<Converters>
        <aur:Converter Mode="*.*=Thumbnail" 
           ThumbnailFitMode="Fit"
           ThumbnailApplyCrop="true" />
</Converters>

Edited by user Monday, July 18, 2011 10:02:18 PM(UTC)  | Reason: Not specified

Best regards,
Pauline Shirykalova
Aurigma Technical Support
peeyush  
#3 Posted : Monday, July 18, 2011 11:06:55 PM(UTC)
peeyush

Rank: Newbie

Groups: Member
Joined: 7/18/2011(UTC)
Posts: 6

Thanks: 1 times
Thanks. That worked for thumbnails, but I also need it for the SourceFile, for which it does not work.
p.shirykalova  
#4 Posted : Monday, July 18, 2011 11:24:35 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups:
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
If you need to get a crop of your source file, you should create Converter like this:

Code:
<Converters>
        <aur:Converter Mode="*.*=Thumbnail" 
           ThumbnailFitMode="ActualSize"
           ThumbnailApplyCrop="true" />
</Converters>


The difference is in the ThumbnailFitMode property:
1. when its value is "Fit" you get an thumbnail which size is ThumbnailWidth x ThumbnailHeight
2. when its value is "ActualSize" you get thumbnail with exact the same size as the source file. In your case you will get cropped image as you applyed crop to your Converter.

Edited by user Thursday, September 22, 2011 11:58:33 PM(UTC)  | Reason: Not specified

Best regards,
Pauline Shirykalova
Aurigma Technical Support
peeyush  
#5 Posted : Tuesday, July 19, 2011 12:17:30 AM(UTC)
peeyush

Rank: Newbie

Groups: Member
Joined: 7/18/2011(UTC)
Posts: 6

Thanks: 1 times
I changed the code to:

<Converters>
<cc1:Converter Mode="*.*=SourceFile" />
<cc1:Converter Mode="*.*=Thumbnail" ThumbnailFitMode="ActualSize" ThumbnailApplyCrop="true" />
</Converters>
<ImageEditor CropRatio="3.1" EnableCrop="true">
</ImageEditor>

the thumbnails are cropped but the actual image aren't

Edited by user Tuesday, July 19, 2011 12:27:51 AM(UTC)  | Reason: Not specified

p.shirykalova  
#6 Posted : Tuesday, July 19, 2011 12:33:53 AM(UTC)
p.shirykalova

Rank: Advanced Member

Groups:
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
As you created two Converters, you will have 2 files uploaded:

1.
Code:
<cc1:Converter Mode="*.*=SourceFile" />

This Converter allows you to upload the source file itself, without any changes (no crop, no resize, nothing)

2.
Code:
<cc1:Converter Mode="*.*=Thumbnail" ThumbnailFitMode="ActualSize" ThumbnailApplyCrop="true" />

This Converter allows you to upload your image same size as your source file, but with crop applyed.

When you use Converters like your first one, you will always get the source file without any changes.
To apply any changes (crop, rotation, etc) you use Converters like your second one.

For more detailes about Converter please check the link.

Edited by user Thursday, September 22, 2011 11:58:52 PM(UTC)  | Reason: Not specified

Best regards,
Pauline Shirykalova
Aurigma Technical Support
thanks 1 user thanked p.shirykalova for this useful post.
peeyush on 7/19/2011(UTC)
peeyush  
#7 Posted : Tuesday, July 19, 2011 12:53:38 AM(UTC)
peeyush

Rank: Newbie

Groups: Member
Joined: 7/18/2011(UTC)
Posts: 6

Thanks: 1 times
My requirement demanded uploading 2 images (original [with cropping], and the thumbnail).

The following code fixed my problem:

<Converters>
<cc1:Converter Mode="*.*=Thumbnail" ThumbnailFitMode="ActualSize" ThumbnailApplyCrop="true" />
<cc1:Converter Mode="*.*=Thumbnail" ThumbnailFitMode="Fit" ThumbnailApplyCrop="true" ThumbnailWidth="250" ThumbnailHeight="187" />
</Converters>

Thanks
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.