Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Size of the image when resizing
Message
From
31/05/2010 23:44:52
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Size of the image when resizing
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01466761
Message ID:
01466761
Views:
105
I use this to resize an image:
loGraphics = System.Drawing.Graphics.FromImage(loImage)
loGraphics.InterpolationMode = Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
loGraphics.DrawImage(oImage, 0, 0, loImage.Width, loImage.Height)
This works well. However, if I do the resize manually in LView Pro, I obtain a file much smaller. Basically, the file is 109 KB in 600x900. If I go in LView Pro and resize that to 500x750, I obtain a file of 39 KB. This is with setting Compression Quality Factor at 75. If I do it with the given code, I end up with a file size of 188 KB. So, doing it in .NET results in a file size of about 4.5 times bigger. What can I do to obtain pretty much the same sizing as in LView Pro? Because, at that rate, it means I will run out of space 4.5 times faster.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform