You are either not logged in or not registered with our community. Click here to register.
 
September 27, 2021, 02:37:05 pm

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Click here if you are having problems.
Default Wide Screen Beige Lilac Rainbow Black & Blue October Platinum Send us your theme!

Wiki Blogs Dicebot

Author Topic: Changing image size with code instead of resizing picture  (Read 168 times)

0 Members and 1 Guest are viewing this topic.

Offline EsotericaTopic starter

  • Your 'New' Best Friend, They/Them Pronouns
  • Liege
  • Seducer
  • *
  • Join Date: Jul 2017
  • Location: Michigan
  • View My Rolls
  • Referrals: 0
Changing image size with code instead of resizing picture
« on: July 12, 2021, 03:21:18 pm »
How do you resize an image using BB code, instead of actually changing the size and such?

Offline Chasing Dreams

  • Head is in the clouds.
  • Oracle
  • Enchanter
  • *
  • Join Date: Jun 2016
  • Location: Somewhere in the US.
  • Gender: Female
  • Finally living again!
  • View My Rolls
  • Referrals: 1
Re: Changing image size with code instead of resizing picture
« Reply #1 on: July 12, 2021, 03:31:45 pm »
You'll use the code:
Code: [Select]
[img height=any number][/img]
You can also just change the width:
Code: [Select]
[img width=any number][/img]
Or you can use them together:
Code: [Select]
[img height=any number width=any number][/img]

Offline EsotericaTopic starter

  • Your 'New' Best Friend, They/Them Pronouns
  • Liege
  • Seducer
  • *
  • Join Date: Jul 2017
  • Location: Michigan
  • View My Rolls
  • Referrals: 0
Re: Changing image size with code instead of resizing picture
« Reply #2 on: July 12, 2021, 03:45:28 pm »
Thank you.

Offline Oniya

  • StoreHouse of Useless Trivia
  • Oracle
  • Carnite
  • *
  • Join Date: Sep 2008
  • Location: City of Roses, PA.
  • Gender: Female
  • One bad Motokifuka. Also cute and FLUFFY!!!
  • View My Rolls
  • Referrals: 3
Re: Changing image size with code instead of resizing picture
« Reply #3 on: July 12, 2021, 04:40:40 pm »
If you use both height and width, it will distort the image to make it fit.  To keep the proportions, pick the 'most important' of the two (what you're trying to make it fit) and let the other dimension auto-scale.

(Height 100)

(Width 200)

(height 100 width 200)