![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need to display a bunch of pictures that are all of various dimensions into a fixed dimension space, like MSN Messenger does with its user photos in the chat windows. Forcing image dimensions will warp the proportions, so that's no good. Forcing one coordinate while leaving the other flexible will maintain proportions, but the x,y values won't be consistant from picture to picture. I considered the MSN Messenger method of bringing one of the coordinates to 100 pixels, and then showing only PART of the information of the other coordinate. I'm not sure if you guys know what I'm talking about, but Messenger will shrink (for example) the width to 100 pixels, keep the height proportionate, but only show the middle 100 pixels of the height (or is it the other way around? no matter). How can I do something similar? Perhaps involving placing an image as a background instead of a foreground element? How can I recreate the MSN Messenger formula for displaying images in constant dimensions without losing the proportions (but losing unnecessary sections of the image)? |
#3
| |||
| |||
|
|
"Jon Yeager" <1@1.1> wrote: I need to display a bunch of pictures that are all of various dimensions into a fixed dimension space, like MSN Messenger does with its user photos in the chat windows. Forcing image dimensions will warp the proportions, so that's no good. Forcing one coordinate while leaving the other flexible will maintain proportions, but the x,y values won't be consistant from picture to picture. I considered the MSN Messenger method of bringing one of the coordinates to 100 pixels, and then showing only PART of the information of the other coordinate. I'm not sure if you guys know what I'm talking about, but Messenger will shrink (for example) the width to 100 pixels, keep the height proportionate, but only show the middle 100 pixels of the height (or is it the other way around? no matter). How can I do something similar? Perhaps involving placing an image as a background instead of a foreground element? How can I recreate the MSN Messenger formula for displaying images in constant dimensions without losing the proportions (but losing unnecessary sections of the image)? Browsers do a poor job when resizing images, better change the actual images. -- Spartanicus |
#4
| |||
| |||
|
|
I need to display a bunch of pictures that are all of various dimensions into a fixed dimension space, like MSN Messenger does with its user photos in the chat windows. Browsers do a poor job when resizing images, better change the actual images. Sorry, not an option. |
|
Still looking for help on the below problem, if anyone has any to offer! |
#5
| |||
| |||
|
|
Sorry, not an option. Still looking for help on the below problem, if anyone has any to offer! |
#6
| |||
| |||
|
|
"Jon Yeager" <1@1.1> wrote: Please don't top post here, corrected this once. |
|
Browsers do a poor job when resizing images, better change the actual images. Sorry, not an option. Why not? |
|
Still looking for help on the below problem, if anyone has any to offer! Sorry not possible. You can achieve the uniform dimensions by coding the image as a centered background image to a fixed width block level element, but there is no way to invoke the browsers resizing mechanism for background images. |
#7
| |||||
| |||||
|
|
Please don't top post here, corrected this once. I have no idea what this means (embarassed look). |
|
Images will be coming in at 50 per day |
|
and there is no manpower to do this manually. There would have to be somekind of automated server-side script that would do it, and since it would do it destructively (as opposed to "live" or "dynamically" without affecting the source) |
|
it is too much of a gamble to take to let a script determine where to crop. |
|
Sorry not possible. You can achieve the uniform dimensions by coding the image as a centered background image to a fixed width block level element, but there is no way to invoke the browsers resizing mechanism for background images. If it cannot be done, then that's what I needed to know. I just wanted somekind of confirmation (although I wonder how MSN Messenger does it?) So there is nothing in the world of HTML / DHTML / CSS / Javascript / etc. that can reproduce the behavior of images in the MSN Messenger chat windows? |
#8
| |||
| |||
|
|
"Jon Yeager" <1@1.1> wrote: If it cannot be done, then that's what I needed to know. I just wanted somekind of confirmation (although I wonder how MSN Messenger does it?) So there is nothing in the world of HTML / DHTML / CSS / Javascript / etc. that can reproduce the behavior of images in the MSN Messenger chat windows? I don't know MSN Messenger, so I can't comment on it. What I can say is that you seem to reject the obvious and proper solution to this problem for no obvious reason. |
I simply wanted to make sure it could not be done. I'm sure you
#9
| |||
| |||
|
|
In all fairness, what you see as "the obvious and proper solution to this problem" (ie, destructively manually cropping the images at the source) is different from what Joe, Mike or John would have seen as "the most obvious solution" |
#10
| |||
| |||
|
|
I have a 100px/120px area to fill with uploaded pictures of people in various dimensions. I need that 100x120 area filled completely, while NOT stretching either of the two coordinates. [snip] |
![]() |
| Thread Tools | |
| Display Modes | |
| |