Reducing the size of images

Home Forums The HeroMachine Art Gallery Tips, Tricks, How-Tos, and Guides Reducing the size of images

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #700

    Weilyn
    Member

    Here’s a neat trick I learned a few months ago, that really helps when you post large pictures. I don’t remember who I learned it from, nor where it was posted. I don’t claim credit for it, I just thought I’d “repost” it with some illustrations, since the original post seems to be a bit hard to find.

    Allright, here’s the trick:

    The maximum image width for the forum is 740 pixels. If an uploaded image is wider than that parts of it will be hidden by the margins, like this:

    ayatollah-2.PNG

    You’ll have to open the image in another tab to see the whole thing, which can be a bit annoying. But there is a simple method to resize images, and still keep the larger version easily available.

    When you upload a picture, something like this ends up in the area where you’re writing your post:

    text1.PNG

    Now bring up your calculator, and divide 740 with the “width”:

    text2.PNG

    Which in this case equals 0.74 (740/998=0.74148296593…)
    Meaning that the width of the resized picture needs to be at most 74 % of the size of the original picture.
    Multiply the percentage with the “height”.

    text3.PNG

    Which gives us 371 (or 371.482965… to be more precise). Enter this instead of the original height, and change the original width to 740.

    text4-1.PNG

    This is what the picture looks like now:

    ayatollah.png

    Both the width and the height have been reduced to 74 %, and the picture fits perfectly within the margins of the forum, but if one wants to see it fullsized, one only has to open it in a new tab.

    Thanks for watching! And thanks to the original poster of the trick, whoever you are!

    #24256

    Hammerknight
    Participant

    Thanks for the post.

    #24356

    Harlekin
    Member

    I sacrifice :D
    I made a post in this topic to the attachment resize. If you go back you find it. But this is better because you made the example more clean.

    Thy Thy great job.

    #24364

    Weilyn
    Member

    I had a feeling it was you, but I couldn’t be certain! http://www.heromachine.com/wp-content/legacy/forum-smileys/sf-laugh.gif

    Thanks again for the trick! It’s brilliantly clever!

    Edit: Here’s the original tutorial.

    #39590

    Stulte
    Participant

    Just wanted to say that the current width of the forum is 606 pixels, not 740.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.