Dec 20, 2015 02:02 AM
(This post was last modified: Dec 20, 2015 02:08 AM by Wide Awake.)
Okay so my code what it does is that it displays an image.
The image it display is manually entered by the user.
The thing is.. lets say that image is 2048 x 1280
It's a pretty big image and it will pretty much cover the whole page.
How can i display that image half that size? I don't want to set an automatic dimension because not every image is the same size.
The user will download that image, so i want to make sure it gets downloaded to its right size.
edit: i was able to fiqure it out. Just add 50% to the img tag dimensions.
The image it display is manually entered by the user.
The thing is.. lets say that image is 2048 x 1280
It's a pretty big image and it will pretty much cover the whole page.
How can i display that image half that size? I don't want to set an automatic dimension because not every image is the same size.
The user will download that image, so i want to make sure it gets downloaded to its right size.
edit: i was able to fiqure it out. Just add 50% to the img tag dimensions.


![[Image: rVdyS6y.png]](https://i.imgur.com/rVdyS6y.png)