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)?
Thanks. 13 6855
"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
Sorry, not an option.
Still looking for help on the below problem, if anyone has any to offer!
"Spartanicus" <me@privacy.net> wrote in message
news:ad********************************@news.spart anicus.utvinternet.ie... "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
photosin 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
to100 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
heightproportionate, but only show the middle 100 pixels of the height (or is
itthe 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
unnecessarysections of the image)?
Browsers do a poor job when resizing images, better change the actual images.
-- Spartanicus
"Jon Yeager" <1@1.1> wrote:
Please don't top post here, corrected this once. 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.
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.
HTH
--
Spartanicus
"Spartanicus" <me@privacy.net> wrote in message
news:d2********************************@news.spart anicus.utvinternet.ie... "Jon Yeager" <1@1.1> wrote:
Please don't top post here, corrected this once.
I have no idea what this means (embarassed look). Browsers do a poor job when resizing images, better change the actual images.Sorry, not an option.
Why not?
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.
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.
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?
It's strictly a C++ thing?
"Jon Yeager" <1@1.1> wrote: Please don't top post here, corrected this once. I have no idea what this means (embarassed look).
Placing a reply above quoted text, this is not appreciated in this
group.
Images will be coming in at 50 per day
If these images are going to be uploaded by the public then you really
need to process them, most users are ignorant regarding things like
image dimensions, file formats and sizes that work on the web. You'll
get 2Mb 1600 x 1024 jpegs, or BMP's.
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)
No need to destroy the source if you don't want that, create new images.
it is too much of a gamble to take to let a script determine where to crop.
So don't crop, just resize if that's what you want. 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?
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.
--
Spartanicus
In article <c8**********@news.wplus.net>,
"Jon Yeager" <1@1.1> writes: Sorry, not an option.
Still looking for help on the below problem, if anyone has any to offer!
I've recently developed output filters for Apache to resize (and process)
images on-the-fly according to negotiated browser preferences.
If something like that would help, I'll be happy to discuss it with you.
But it's not an off-the-shelf solution, so I'd have to charge you time.
--
Nick Kew
Nick's manifesto: http://www.htmlhelp.com/~nick/
"Spartanicus" <me@privacy.net> wrote in message
news:kd********************************@news.spart anicus.utvinternet.ie... "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.
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" (for instance, someone else didn't understand why I didn't just
resize the largest variable, and just leave blank space around the other
coordinate (which would be more narrow than the alotted space). It would
FIT, but it wouldn't fill out the area completely.
Basically, though I appreciate the suggestions, none of these do what I want
to do -- which to me, is the best reason of all for rejecting them, until it
has been proven that what I need to be done cannot be done.
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.
Now there is nothing "obvious" or "proper" about your suggestion which does
not accomplish this -- but rather, proposes one of the many "Plan B"
alternatives. But before falling back on Plan B, I simply wanted to make
sure Plan A was not do-able.
MSN Messenger does Plan A with no problems, but they don't do it in HTML.
They do it in C++ so it is quite possible that a website simply cannot do
what I'm asking -- and confirmation of that is all I was seeking before
considering the alternatives. It's not in my nature to give up on an idea so
quickly. ;) I simply wanted to make sure it could not be done. I'm sure you
understand.
"Jon Yeager" <1@1.1> wrote: 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"
Not only do you persist in giving no valid reason why the proposed
solution is not the correct approach, you are apparently so threatened
by it that you felt it was necessary to once again suggest that the
proposed solution required manual work and/or destruction of the
originals, both assumptions were incorrect the first time you mentioned
this, and they still are.
--
Spartanicus
Jon Yeager wrote:
[snip] 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]
Seems to me that these are two contradicting goals. But if it is OK to
use Javascript to do this, check out what eBay uses for resizing the
smaller-sized photo at the top of an item listing.
= Eric ni**@hugin.webthing.com (Nick Kew) wrote in message news:<17************@webthing.com>... In article <c8**********@news.wplus.net>, "Jon Yeager" <1@1.1> writes: Sorry, not an option.
Still looking for help on the below problem, if anyone has any to offer!
I've recently developed output filters for Apache to resize (and process) images on-the-fly according to negotiated browser preferences.
If something like that would help, I'll be happy to discuss it with you. But it's not an off-the-shelf solution, so I'd have to charge you time.
ER.. This is a ten minute tutorial if you have php and imageMajik. Can
be done without the latter I believe. Would this be an option?
In article <33**************************@posting.google.com >, bg***@yahoo.com (Nairb) writes: ER.. This is a ten minute tutorial if you have php and imageMajik. Can be done without the latter I believe. Would this be an option?
That's more-or-less what my Client for some of this work is upgrading
from. They need a large-scale operational system, not a homepage hack.
--
Nick Kew
Nick's manifesto: http://www.htmlhelp.com/~nick/
The only one here showing any signs of feeling threatened is you,
"Spartanicus".
Feel insecure much? Your proposed solutions are not appropriate for my
needs, LIVE WITH IT. I would have thanked you for at least trying to help if
you weren't so incredibly obnoxious and condescending. For the last time,
the only person who sees YOUR proposed solutions as the only "correct"
approach is YOU. Others around you have proposed other solutions which are
no less "ideal" than yours.
I mean geezus Christ, if I thought your solutions would help me, don't you
think it would be in my best interests to use them? Why are you taking it so
damn hard that they don't address my needs?
Humility. Welcome it into your heart.
"Spartanicus" <me@privacy.net> wrote in message
news:f9********************************@news.spart anicus.utvinternet.ie... "Jon Yeager" <1@1.1> wrote:
In all fairness, what you see as "the obvious and proper solution to this problem" (ie, destructively manually cropping the images at the source)
isdifferent from what Joe, Mike or John would have seen as "the most
obvioussolution"
Not only do you persist in giving no valid reason why the proposed solution is not the correct approach, you are apparently so threatened by it that you felt it was necessary to once again suggest that the proposed solution required manual work and/or destruction of the originals, both assumptions were incorrect the first time you mentioned this, and they still are.
-- Spartanicus
Hi Eric,
Thanks for the suggestion. Will do.
"Eric Bustad" <ek******@monmouth.com> wrote in message
news:Z_********************@comcast.com... Jon Yeager wrote: [snip] 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]
Seems to me that these are two contradicting goals. But if it is OK to use Javascript to do this, check out what eBay uses for resizing the smaller-sized photo at the top of an item listing.
= Eric This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: riki |
last post by:
Hi,
i have a big problem...i'm using one jscript for resizing of all of my pics
in popUp...in main html i'm having many little pics and clicking on them
they open in popUp and resize to larger...
|
by: Freek te Water |
last post by:
Hi,
Hope no-one is offended by my probably noob question...
Context:
I have a web page design, which always centres in the middle of the
screen (using a 100%*100% HTML-table). Now I also use...
|
by: Robby Bankston |
last post by:
I'm working on some code and am running into brick walls. I'm trying
to write out Javascript with Javascript and I've read the clj Meta FAQ
and didn't see the answer, read many similar posts (with...
|
by: adolph |
last post by:
Using Access2000, I would like to resize an image then save it to a
new file with the resized size.
I'm taking pictures (JPGs) with my digitial set at 3.2 megs. I've
figured out how to get my...
|
by: David J. Berman |
last post by:
Thanks for any help...!
My error is:
Object reference not set to an instance of an object.
> public int DisplayOrder {
> get {
>>>>>> return (int) ViewState;
> }
|
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...
|
by: Maxi |
last post by:
I have a 30X16 cells table in my html page. Table height and width are
set to 100%. I have set size of every cell inside the table to 24
pixel.
When I open the html page in maximize state in...
|
by: GraGra33 |
last post by:
Hi all...
I have developed an application for managing a very large resource of
artist's paintings and posts them to a web site. The application works well.
I'm trying to reduce the complexity...
|
by: =?Utf-8?B?bm9yZHkyMDA=?= |
last post by:
The first bunch of pictures I downloaded to my computer I could resize by
right clicking and the drop down menu would have an item that seaid resize. I
resized to a large email format, saved that...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |