Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Reduce image size?

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.
[Image: rVdyS6y.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by OmbraApr 17, 2018 08:52 AM 6 170 Apr 17, 2018 08:52 AM
Last Post: Ombra
by Account of the GodsJan 17, 2018 08:56 AM 2 178 Jan 17, 2018 08:56 AM
Last Post: wikiextras
by N1l0cFeb 14, 2017 12:36 AM 8 222 Feb 14, 2017 12:36 AM
Last Post: N1l0c