标准化在asp.net中JPEG尺寸 [英] Standardizing jpeg size in asp.net

查看:78
本文介绍了标准化在asp.net中JPEG尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为所有雇员显示来自SQL Server数据库的图像。
当这些图像被存储在数据库中的,他们存储有不同的尺寸。一个更小的尺寸和更大尺寸的其他的的。

I am displaying images from the SQL Server database for all the employees. when these images are stored in the database they were stored with different sizes. One are of smaller size and the other ones of bigger sizes.

当我说的尺寸,我的意思是宽度和高度。

When I say size, I mean width and height.

当我在aspx页面显示它我想在300X250尺寸显示

When I display it in aspx page I want to display in 300X250 size

我怎样才能做到这一点?如果我设置图像控制高度和宽度的图像失真。

How can I do that? If I set the image control height and width the images are distorted.

请帮忙

推荐答案

看看ImageResizer.net。它有你需要的一切,包括code样本SQL Server集成和宽高比preserved croping:

Take a look at ImageResizer.net. It has everything you need including code samples for SQL Server integration and croping with aspect ratio preserved:

http://imageresizing.net/

最流行的功能是免费的,开源的:

The most popular features are free and open-source:


  • 调整,裁剪,旋转,翻转

  • 边框,落阴影,填充,背景颜色

  • 可调的Jpeg COM pression。多页TIFF查看

  • GIF动画帧选择。 COM prehensive,实时诊断

  • 基本GIF和PNG编码

  • 梯度产生

这篇关于标准化在asp.net中JPEG尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆