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

Notification

Icon
Error

Options
Go to last post Go to first unread
RicardoFig  
#1 Posted : Monday, May 7, 2012 11:07:17 AM(UTC)
RicardoFig

Rank: Newbie

Groups: Member
Joined: 10/28/2008(UTC)
Posts: 2

Hi

I have the following:

Converter convOri = new Converter();
convOri.Mode = "*.*=SourceFile";
Uploader1.Converters.Add(convOri);

Converter conv = new Converter();
conv.Mode = "*.*=Thumbnail";
conv.ThumbnailApplyCrop = true;
conv.ThumbnailCopyExif = true;
conv.ThumbnailHeight = 1800;
conv.ThumbnailWidth = 1800;
conv.ThumbnailCompressOversizedOnly = true;
conv.ThumbnailJpegQuality = 85;
Uploader1.Converters.Add(conv);


but my problem is that when I upload a jpg always is upload original, is there a way to only upload original files if the thumb creation (resize) failed?

thanks
Dmitry.Obukhov  
#2 Posted : Monday, May 7, 2012 11:40:27 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Sure, it is possible :) You will need to use this code with the following converter settings only:
Code:

Converter conv = new Converter();
conv.Mode = "*.*=Thumbnail; *.*=SourceFile";
conv.ThumbnailApplyCrop = true;
conv.ThumbnailCopyExif = true;
conv.ThumbnailHeight = 1800;
conv.ThumbnailWidth = 1800;
conv.ThumbnailCompressOversizedOnly = true;
conv.ThumbnailJpegQuality = 85;
Uploader1.Converters.Add(conv);

The line conv.Mode = "*.*=Thumbnail; *.*=SourceFile"; means that Image Uploader will send a thumbnail of file always (when it can) and an original file if resizing fails for some reasons.

If you have any questions please feel free to ask them here.

Edited by user Monday, May 7, 2012 11:41:08 PM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
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.