Change picture size in coding please...

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Change picture size in coding please...

mywaytoo
I wish that I could change the size of pictrues (small, medium, large???) that I have posted by using the coding... like I can with position (centre, left, right) and alt text (text).


Anne
Reply | Threaded
Open this post in threaded view
|

Re: Change picture size in coding please...

Peter <Nabble>
<nabble_img src="avatar100.png" border="0" width="50"/> :


<nabble_img src="avatar100.png" border="0" height="70"/> :



If you specify both width and height at the same time, proportion is not guaranteed.
Nabble staff. We never ask for passwords.
Reply | Threaded
Open this post in threaded view
|

Re: Change picture size in coding please...

mywaytoo
Thank you...  
Anne
Reply | Threaded
Open this post in threaded view
|

Re: Change picture size in coding please...

GregChapman
In reply to this post by Peter <Nabble>
Peter <Nabble> wrote
<nabble_img src="avatar100.png" border="0" width="50"/>
<nabble_img src="avatar100.png" border="0" height="70"/>
If you specify both width and height at the same time, proportion is not guaranteed.
Just to clarify...

Are those values are sizes in pixels?
Can %age values be used?
Specifying only one of the values (width or height) guarantees the image will retain its aspect ratio?

I note your examples both show downsizing. Presumably, to maintain the best image quality you should avoid upsizing, (so, for example, if you have uploaded an image with a 250px width (or set the width to that size on the upload dialogue), it would NOT be a good idea to set the resultant width code to 400?
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: Change picture size in coding please...

mywaytoo
I hadn't thought about sizing measurements... I had initially imagined words, eg. small, medium, large (or whatever) to tie in with the other things.

Hmmm... with hindsight I think that words would be best and the coding displayed along with the others too.
Anne
Reply | Threaded
Open this post in threaded view
|

Re: Change picture size in coding please...

Peter <Nabble>
<nabble_img src="avatar100.png" border="0" width="20%"/> :


<nabble_img src="avatar100.png" border="0" height="15%"/> :


Just give it a try. Write a post and click "preview message". ;-)

In fact I was not reducing, I got the image from the "May 16, 2011; 7:45am — by <apple_image> mywaytoo" that shows up when we reply a message. ;-)
It was small and I tried to enlarge.

Yes, quality drops more a when we enlarge and drops less when we reduce.
Nabble staff. We never ask for passwords.