homepage Welcome to WebmasterWorld Guest from 50.19.169.37
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
How can I change the size of an image
if I don't have access to the img tag?
Dogza




msg:3587524
 9:30 pm on Feb 28, 2008 (gmt 0)

I have a website which allows customers to upload an image. I need to fix the image size, 100 x 100 for example.

Normally you can just enter in the image size like this:
<img src="http://www.example.com/image.jpg" width="100" height="100">

Here is the problem. The program uses a snippit of code to insert the image into the website like this <<IMAGE>>
I just enter that in the HTML exactly where I want the picture to be.

That snippit of code only includes this:
<img src="http://www.example.com/image.jpg">

I can't include the image size after the code. Any ideas on how I can adjust the image size?

 

tedster




msg:3587530
 9:42 pm on Feb 28, 2008 (gmt 0)

You won't be able to it with HTML, but you can resize the images on the server. For example, you can use PHP, as in this thread:

upload and resize image [webmasterworld.com]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved