![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
HTML/DHTML/Scripting & Image gurus...
I think my subject covered everyone that could possibly help. I have a question, does anyone know how to scale an image maintaining the aspect ratio of the image, with or close to 350h or 350w? I don't want to change the original image at.
Is there a HTML, DHTML or Script that will force a image to be displayed with a set ratio dimension? I want to be able to load images into a table cell and not have to resize the images manually before hand, since users will be automatically uploading images. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
photoshop
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Dec 2003
Location: Toronto
Posts: 285
|
you can even just set the width and height in the img tag that would show it with the desired width and height if you wanna keep the ratio i don't think hahahahahahahahahaha can do that i didn't look into it but it can be done easily with a server side script.
DW
__________________
Custom large/complex systems programing.<br>ASP.Net, C#, XML, MS SQL, WebServices(SOAP).<br>ICQ: 235719545 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jul 2003
Location: East Village
Posts: 238
|
you can just set <img src="" width="350"> but each user will be downloading the full image = slow & more bandwidth
the following code will thumbnail the image PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |