Jump to content

Image Resizing.


natasha_thomas

Recommended Posts

Folks,

 

I have an Image URL, i want to show this image on my site but i want to resize the image on the fly.

 

Image:

http://ecx.images-amazon.com/images/I/41daynaberL._SL75_.jpg

 

What i am doing is:

<img height="100" width="80" src="http://ecx.images-amazon.com/images/I/41daynaberL._SL75_.jpg" />

 

But its not resizing the Image...

 

Any solutions?

 

Cheers

N

Link to comment
https://forums.phpfreaks.com/topic/237056-image-resizing/
Share on other sites

Yes css is another solution but why html doesn't work

the html code above is correct

 

I don't know what your problem is but you are right, the code does work.

 

But first, why are you linking to the image instead of downloading it?

 

And secondly, the image is 75x50 px and you can't resize a picture larger without distorting it which is what happens in this case.

Link to comment
https://forums.phpfreaks.com/topic/237056-image-resizing/#findComment-1220234
Share on other sites

Folks,

 

I have an Image URL, i want to show this image on my site but i want to resize the image on the fly.

 

Image:

http://ecx.images-amazon.com/images/I/41daynaberL._SL75_.jpg

 

What i am doing is:

<img height="100" width="80" src="http://ecx.images-amazon.com/images/I/41daynaberL._SL75_.jpg" />

 

But its not resizing the Image...

 

Any solutions?

 

Cheers

N

 

Have img height="100" width="80"  after the img src <src="http://ecx.images-amazon.com/images/I/41daynaberL._SL75_.jpg" img height="100" width="80"  />

Link to comment
https://forums.phpfreaks.com/topic/237056-image-resizing/#findComment-1223267
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.