Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

How can I change the size of an image

if I don't have access to the img tag?



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

10+ Year Member

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?


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

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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]


Featured Threads

Hot Threads This Week

Hot Threads This Month