473,799 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

- Dynamically Resizing/Cropping Pictures

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.
Jul 20 '05
13 6890
ni**@hugin.webt hing.com (Nick Kew) wrote in message news:<17******* *****@webthing. com>...
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.

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?
Jul 20 '05 #11
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/
Jul 20 '05 #12
The only one here showing any signs of feeling threatened is you,
"Spartanicu s".

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.
"Spartanicu s" <me@privacy.net > wrote in message
news:f9******** *************** *********@news. spartanicus.utv internet.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

Jul 20 '05 #13
Hi Eric,

Thanks for the suggestion. Will do.

"Eric Bustad" <ek******@monmo uth.com> wrote in message
news:Z_******** ************@co mcast.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

Jul 20 '05 #14

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

Similar topics

10
2335
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
8
11099
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:
9
2901
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...
1
2011
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...
1
5660
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; > }
10
4165
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...
5
6212
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...
5
1290
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
1
1215
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!
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
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,...
0
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10259
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10238
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,...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
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...
0
5589
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2941
bsmnconsultancy
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...

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.