473,322 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

ASP Image Control

Hi

I use the image controls to show images but it distorts the image if the
image dimensions are different to the image itself

Thank you,
Samuel
Jul 28 '08 #1
6 1649
As it should.

"Samuel" <sa************@ntlworld.comwrote in message
news:Ov**************@TK2MSFTNGP02.phx.gbl...
Hi

I use the image controls to show images but it distorts the image if the
image dimensions are different to the image itself

Thank you,
Samuel

Jul 28 '08 #2
That is normal. When you change pixel size, the image has to be interpolated
in the browser.

There are technologies, like deep zoom, that allow zooming in and out
without degredation, but they require multiple images to do this.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! |
********************************************
"Samuel" <sa************@ntlworld.comwrote in message
news:Ov**************@TK2MSFTNGP02.phx.gbl...
Hi

I use the image controls to show images but it distorts the image if the
image dimensions are different to the image itself

Thank you,
Samuel
Jul 28 '08 #3
So what does everyone do when they have to show images of different
proportional dimensions
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:uU**************@TK2MSFTNGP06.phx.gbl...
That is normal. When you change pixel size, the image has to be
interpolated in the browser.

There are technologies, like deep zoom, that allow zooming in and out
without degredation, but they require multiple images to do this.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! |
********************************************
"Samuel" <sa************@ntlworld.comwrote in message
news:Ov**************@TK2MSFTNGP02.phx.gbl...
>Hi

I use the image controls to show images but it distorts the image if the
image dimensions are different to the image itself

Thank you,
Samuel

Jul 28 '08 #4
Samuel submitted this idea :
So what does everyone do when they have to show images of different
proportional dimensions
A few ways:

* Do NOT specify height and width - leave it to the browser to display
the full image in the correct dimensions.

* Change the image server-side so you can proportionately rescale it.
Then you can have both a (calculated) thumbnail and the full-size
image.

* Calculate a width so it is in proportion to your height for this
particular image and let the browser rescale the image (or calculate
height from width). That means a lot of work for the browser: download
the full (possibly large) image, and then rescale it to display a
thumbnail)

Hans Kesting
Jul 28 '08 #5
Thank you
"Hans Kesting" <ne*********@spamgourmet.comwrote in message
news:%2******************@TK2MSFTNGP05.phx.gbl...
Samuel submitted this idea :
>So what does everyone do when they have to show images of different
proportional dimensions

A few ways:

* Do NOT specify height and width - leave it to the browser to display the
full image in the correct dimensions.

* Change the image server-side so you can proportionately rescale it. Then
you can have both a (calculated) thumbnail and the full-size image.

* Calculate a width so it is in proportion to your height for this
particular image and let the browser rescale the image (or calculate
height from width). That means a lot of work for the browser: download the
full (possibly large) image, and then rescale it to display a thumbnail)

Hans Kesting


Jul 28 '08 #6
One thing you can do is to get the dimensions as you show the image and
adjust the image tag accordingly. This means you need enough space for the
largest image.

If you do not want to query the image every time, you can store it when the
image is uploaded.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! |
********************************************
"Samuel" <sa************@ntlworld.comwrote in message
news:eC**************@TK2MSFTNGP02.phx.gbl...
So what does everyone do when they have to show images of different
proportional dimensions
"Cowboy (Gregory A. Beamer)" <No************@comcast.netNoSpamMwrote in
message news:uU**************@TK2MSFTNGP06.phx.gbl...
>That is normal. When you change pixel size, the image has to be
interpolated in the browser.

There are technologies, like deep zoom, that allow zooming in and out
without degredation, but they require multiple images to do this.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

********************************************
| Think outside the box! |
********************************************
"Samuel" <sa************@ntlworld.comwrote in message
news:Ov**************@TK2MSFTNGP02.phx.gbl...
>>Hi

I use the image controls to show images but it distorts the image if the
image dimensions are different to the image itself

Thank you,
Samuel

Jul 29 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Greg Christie | last post by:
I think I have a somewhat unique situation here, so I thought I should post it for the few poor souls who run across it and try to google it like I did. First of all, I was getting the following...
4
by: Ed Landau | last post by:
In VB6.0, I can put an image on a form and assign it's .picture property at run-time. In VBA (within MS Access), when I put down an image control on a form, it asks me for the source to the image...
4
by: Kevin Myers | last post by:
Hello, Please forgive my reposting of this note with hopefully a more relevant subject line. On an Access 2000 form under Windows 2000 I would like to use a Kodak Image Edit Control to...
12
by: Sharon | last post by:
I’m wrote a small DLL that used the FreeImage.DLL (that can be found at http://www.codeproject.com/bitmap/graphicsuite.asp). I also wrote a small console application in C++ (unmanaged) that uses...
0
by: Satish Appasani | last post by:
Hi: I have a ASP.NET form with Web layout which I've achieved using panels. In one of the tab I have a File control to upload Images. When I put a file in the file control and move to another...
10
by: David W. Simmonds | last post by:
I have a DataList control that has an Image control in the ItemTemplate. I would like to resize the image that goes into that control. I have a series of jpg files that are full size, full...
1
by: Brian | last post by:
Using A2K I have an image control on a report and use code to set the image.picture to the required jpg. 3 of the jpgs resize properly but 2 do not - they display much smaller than the image...
3
by: Raghu Raman | last post by:
Hi i want to save the read the image file and show it on a image control of a mobile webform .But the mobile control does not support html images ,so i am forced to use the server image control...
9
by: Mark Denardo | last post by:
This is related to another post I submitted, but I'll be more precise this time. I have a web page that contains an Image webcontrol that loads its image by: Image1.ImageUrl="<username>.jpg",...
0
by: SayamiSuchi | last post by:
hi I have taken one image control("image1") in the form("frmForm1.aspx").Now i want to one image ("mypic.jpeg") whose size is larger than the image control i.e image1.When i run the program, the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.