Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.