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 6889
"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 proportionat e, 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!
"Spartanicu s" <me@privacy.net > wrote in message
news:ad******** *************** *********@news. spartanicus.utv internet.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
heightproportionat e, 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
"Spartanicu s" <me@privacy.net > wrote in message
news:d2******** *************** *********@news. spartanicus.utv internet.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 "dynamicall y" 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 "dynamicall y" 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**********@n ews.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/
"Spartanicu s" <me@privacy.net > wrote in message
news:kd******** *************** *********@news. spartanicus.utv internet.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 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 version of the same pic.
now, it works fine and sometimes when i click on little one it doesn't
resize well...
this is the code:
main.html
|
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 layers, that get
visible when something is clicked. All works fine.
Problem:
|
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 no luck
though), and searched through the IRT.ORG Faqs
(www.irt.org/script/script.htm).
The Javascript is designed to open an popup window and then inside that
window call another script which will resize that window. There may be
another...
|
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 access program to find the pictures and show
them as thumbnails so I can add a description and notes. I then
rename and save these pictures to a different location and add a
record to a table with the new file name and location. But the
picture...
|
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 resolution (ie. large). I have a
database that contains references to the pictures. Currently I have to
resize the jpgs manually, and then point the ImageUrl property at that jpg
using databinding. This works fine. I would like to avoid the resizing step...
|
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 either resolution 800 X
600 or 1152 X 864 it takes up the entire explorer size.
In screen resolution 800 X 600, if I insert a pictures of 24 X 24 pixel
in the cells it takes up the entire cell size (ideally it should as the
cell size is also 24 X...
|
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 of having to work with photoshop and
integrate one feature into the application Distortion Transformations.
Background Information:
When paintings are photographed, it's impossible to get a completely perfect
|
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 resized picture in the pictures
folder and then sent a bunch of pictures. Now, when I just downloaded my
second bunch of pictures, the Resize function no longer shows up on the drop
down menu when I right click on a picture. Any ideas? Thanks!
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |