Resizing Images - Quick And Dirty, How To Guide
Saturday, November 3, 2007 8:22:04 PM
First, start with your basic image. For this example we'll use my favourite thing in the whole world...Fresh steak, ready to cook.
The address of this image is http://files.myopera.com/Furie/files/steak1.JPG and the dimensions of the image are 1600 width and 1200 height, though my page automatically cuts it down to a decent size for viewing.
Now, that's a bit big isn't it? So lets cut it down a bit, shall we.
What sorcery is this then? The address of this image is still http://files.myopera.com/Furie/files/steak1.JPG but now the dimensions have been cut down to 200 width and 150 height. So, how do we do this? Simple.
<img src="http://files.myopera.com/Furie/files/steak1.JPG">is what I typed to display the first image and
<img src="http://files.myopera.com/Furie/files/steak1.JPG" width="200" height="150">is what I used to display the second one. Spot the difference yet?
By adding the height and width commands into the image code I can control the maximum size that the image will display at. The numbers I enter into the quotes will be the maximum allowed dimension of the image for either the height or the width.
One thing to remember while trying this out is that the image will display wrong if you don't cut each parameter down by the same percentage. As an example, on the following version of the same photo I'll cut the width down to 400 but keep the height at 100.
<img src="http://files.myopera.com/Furie/files/steak1.JPG" width="400" height="100">is what I typed to get that one. You can still just about tell what it is, but I like my meat a little thicker than that...
To fix it I've got to figure out what the height should be. Using the original image size of width 1600 and height 1200, I can see that I've taken the width down to a quarter of what it started out as because the current width is 400. But the height isn't enough, so I need to take the height down to a quarter of it's original starting value as well. Lets see... A quarter of 1200 is 300 so I should enter that in the height value instead of 100 as it currently is. My final code should therefore be
<img src="http://files.myopera.com/Furie/files/steak1.JPG" width="400" height="300">
And it works perfectly.
Hope this post was helpful to people.

theoddbod # Saturday, November 3, 2007 10:05:42 PM
~ Callya ~Callya # Saturday, November 3, 2007 10:33:11 PM
Dark FurieFurie # Saturday, November 3, 2007 11:07:13 PM
Seriously though, good point.
Christopher DaSilvadannii # Sunday, November 4, 2007 1:13:06 AM
Dacotah # Sunday, November 4, 2007 1:44:52 AM
KYrenKYren # Sunday, November 4, 2007 4:11:08 AM
Bad WolfCois # Sunday, November 4, 2007 10:45:36 AM
Dark FurieFurie # Sunday, November 4, 2007 12:32:10 PM
Christopher DaSilvadannii # Sunday, November 4, 2007 12:49:04 PM
Cuz I totally stopped using the < img src = now that it doesn't work on comments and when using them in posts then then it f*cks up all the breaks in hte post
Dark FurieFurie # Sunday, November 4, 2007 12:54:42 PM
Christopher DaSilvadannii # Sunday, November 4, 2007 1:07:03 PM
KYrenKYren # Sunday, November 4, 2007 7:24:10 PM
but it didn't work.
Dark FurieFurie # Sunday, November 4, 2007 7:42:22 PM
Reshade # Friday, May 2, 2008 7:06:50 PM
Dark FurieFurie # Friday, May 2, 2008 7:19:09 PM
Bad WolfCois # Saturday, May 3, 2008 9:26:34 AM
Dark FurieFurie # Saturday, May 3, 2008 11:04:08 AM
KYrenKYren # Saturday, May 3, 2008 12:01:59 PM
Dark FurieFurie # Saturday, May 3, 2008 4:31:45 PM
Dark FurieFurie # Saturday, May 3, 2008 4:31:47 PM
Bad WolfCois # Saturday, May 3, 2008 7:09:11 PM
Dark FurieFurie # Saturday, May 3, 2008 10:58:52 PM
Bad WolfCois # Sunday, May 4, 2008 9:40:20 AM
Mad Scientistqlue # Wednesday, January 7, 2009 4:01:58 PM
Dark FurieFurie # Wednesday, January 7, 2009 4:04:47 PM
ɥʇɐǝp ɟo ssǝɔuıɹdprincessofdeath # Tuesday, April 28, 2009 10:04:23 AM
Even if I use table format, the paragraph spacing gets smaller and disarray.
ɥʇɐǝp ɟo ssǝɔuıɹdprincessofdeath # Tuesday, April 28, 2009 10:07:45 AM
Dark FurieFurie # Tuesday, April 28, 2009 11:16:57 AM
ɥʇɐǝp ɟo ssǝɔuıɹdprincessofdeath # Tuesday, April 28, 2009 2:10:53 PM
Mad Scientistqlue # Tuesday, April 28, 2009 2:26:17 PM
ɥʇɐǝp ɟo ssǝɔuıɹdprincessofdeath # Wednesday, April 29, 2009 12:05:27 PM