Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, June 16, 2010 11:18:43 AM(UTC)

grennel  
grennel

Groups: Registered
Posts: 4


I am resizing a particular jpg, and noticed after resizing that it is rotated 90 degrees.
After debugging a bit, I found that on the original image CodecsImageInfo.ViewPerspective is TopLeft90.
Do I need to do anything (or should I be doing anything) to keep the ViewPerspective intact for the resulting image?
I have attached the images and code.

Thanks!


Leadtools.dll is on 15.0.1.56
File Attachment(s):
ImageRotated.zip (78kb) downloaded 26 time(s).
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, June 17, 2010 5:14:04 AM(UTC)

Basel  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

The rotation happens when you load the image using RasterImage tempImage = codecs.Load(sourceStream). LEADTOOLS loads the image correctly since it has TopLeft90 in CodecsImageInfo.ViewPerspective.

You can use IgnoreViewPerspective Property, which indicates whether or not to ignore the view perspective stored in the file.

If the image contains ViewPerspective, LEADTOOLS will save its information along with the image.

For more information, please see our .NET help file.
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.058 seconds.