Welcome Guest Search | Active Topics | Members

Thumbnails - Preserving Aspect Ratio Options
ilaya
Posted: Friday, June 30, 2006 7:17:52 PM
Rank: Member
Groups: Member

Joined: 6/30/2006
Posts: 17
Points: 27
Hello,

When creating thumbnails, I would like to define certain width (in px) for Horazintal images and another width for Vertical images. how do I do that ? How do i preserve the aspect ratio ?

Tnx
Alex Makhov
Posted: Friday, June 30, 2006 10:30:32 PM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

Image thumbnail ratio is always preserved. To fit thumbnail to the appropriate width and height set the UploadThumbnailNNFitMode (NN is thumbnail index) to "Fit" and UploadThumbnailNNWidth and UploadThumbnailNNHeight to your width and height. Here is the link to read about it:
Rotating, Resizing, and Optimizing Images.


Sincerely yours,
Alex Makhov
ilaya
Posted: Saturday, July 01, 2006 2:23:20 AM
Rank: Member
Groups: Member

Joined: 6/30/2006
Posts: 17
Points: 27
tnx Alex,

but i have a problem. i don't wont the same width and height for vertical and horizontal images.
for the first i want 135*180 and for the second i want 160*120.
what can i do ?

Ilay
Alex Makhov
Posted: Saturday, July 01, 2006 2:28:44 AM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

So if you want the images to be resized by width or by height you could send two thumbnails for each file: the first thumbnail with FitMode=Width and the second thumbnail with FitMode=Height and then on the server part take the appropriate thumbnail (the first or the second one) according to its aspect ratio.

Sincerely yours,
Alex Makhov
ilaya
Posted: Saturday, July 01, 2006 3:16:26 AM
Rank: Member
Groups: Member

Joined: 6/30/2006
Posts: 17
Points: 27
that's a good idea !

tnx again !
ilaya
Posted: Saturday, July 01, 2006 3:58:48 AM
Rank: Member
Groups: Member

Joined: 6/30/2006
Posts: 17
Points: 27
another question:

Since Microsoft took a legal action, In order to activate the Image Uploader frame, you need to click on it.
It's an extra click and it's annoying....

can we avoid it ?

tnx !
Alex Makhov
Posted: Saturday, July 01, 2006 4:39:34 AM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Quote:
can we avoid it ?

Yes, we have updated the iuembed.js script to avoid this behavior. The new updated version of iuembed.js file will be available soon.


Sincerely yours,
Alex Makhov
ilaya
Posted: Saturday, July 01, 2006 5:10:39 AM
Rank: Member
Groups: Member

Joined: 6/30/2006
Posts: 17
Points: 27
what about ActiveX only version ?
Fedor
Posted: Sunday, July 02, 2006 10:38:14 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
You should use iuembed.js to avoid object activation requirement. It is not bug of Image Uploader, it is just feature of Internet Explorer which requires to use external scripts for control embedding.

Best regards,
Fedor Skvortsov
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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.