Can I use JQuery to resize an image that is not on my local server?
Lets say I have an image on http://www.example.com/dir/images/myImage.jpg
And I want to resize the image on my server http://www.localhost.com
Will it still work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can load that image from example.com, and you can change the scale at which it is presented on your page, but you can’t edit the file itself. You can either use the
heightandwidthtags that Masoud commented, or you can use CSS to edit that element’s width+height properties.