Register | Sign In


Understanding through Discussion


EvC Forum active members: 65 (9164 total)
6 online now:
Newest Member: ChatGPT
Post Volume: Total: 916,435 Year: 3,692/9,624 Month: 563/974 Week: 176/276 Day: 16/34 Hour: 0/2


Thread  Details

Email This Thread
Newer Topic | Older Topic
  
Author Topic:   image issues
Panda
Member (Idle past 3734 days)
Posts: 2688
From: UK
Joined: 10-04-2010


Message 16 of 20 (631387)
08-31-2011 8:21 PM
Reply to: Message 15 by Admin
08-31-2011 7:42 PM


Re: picture problem
Admin writes:
I didn't realize it was changing the aspect ratio that you were interested in. It would be easy to do option 2, but why? Is there any demand?
TBH: I have no idea about the demand, only that it is available on other BB's.
As to the exact implementation, I would suggest that it expands to its actual size and ratio.
But that is an educated guess based on my experience as a developer, but that experience does not exactly translate into how BB images should work.
Maybe CS has some input...

Always remember: QUIDQUID LATINE DICTUM SIT ALTUM VIDITUR
Science flies you into space; religion flies you into buildings.

This message is a reply to:
 Message 15 by Admin, posted 08-31-2011 7:42 PM Admin has replied

Replies to this message:
 Message 17 by Admin, posted 09-02-2011 8:05 AM Panda has seen this message but not replied

  
Admin
Director
Posts: 13018
From: EvC Forum
Joined: 06-14-2002
Member Rating: 1.9


Message 17 of 20 (631646)
09-02-2011 8:05 AM
Reply to: Message 16 by Panda
08-31-2011 8:21 PM


Re: picture problem
I implemented this a couple days ago and was waiting to see if CS would chime in. I decided that maintaining aspect ratio was the correct action when changing image size. It'll become available the next time I post an update.

--Percy
EvC Forum Director

This message is a reply to:
 Message 16 by Panda, posted 08-31-2011 8:21 PM Panda has seen this message but not replied

Replies to this message:
 Message 18 by New Cat's Eye, posted 09-02-2011 10:03 AM Admin has replied

  
New Cat's Eye
Inactive Member


Message 18 of 20 (631663)
09-02-2011 10:03 AM
Reply to: Message 17 by Admin
09-02-2011 8:05 AM


Re: picture problem
I think the aspect ratio should stay the same. If I could just put in one number for the width, like it already does now and keeps the same aspect ratio, but then could also put in a comma and add "left" to align it to the left, then that would be really cool. Or visa versa:
[img=left, 150]
That there would be ideal.

This message is a reply to:
 Message 17 by Admin, posted 09-02-2011 8:05 AM Admin has replied

Replies to this message:
 Message 19 by Admin, posted 09-03-2011 6:20 AM New Cat's Eye has not replied

  
Admin
Director
Posts: 13018
From: EvC Forum
Joined: 06-14-2002
Member Rating: 1.9


(1)
Message 19 of 20 (631780)
09-03-2011 6:20 AM
Reply to: Message 18 by New Cat's Eye
09-02-2011 10:03 AM


Re: picture problem
Catholic Scientist writes:
I think the aspect ratio should stay the same. If I could just put in one number for the width, like it already does now and keeps the same aspect ratio, but then could also put in a comma and add "left" to align it to the left, then that would be really cool. Or visa versa:
[img=left, 150]
That there would be ideal.
You can do that now, just leave out the space after the comma:
Sorry it's so picky about punctuation, I'll take a look at making it more flexible.

--Percy
EvC Forum Director

This message is a reply to:
 Message 18 by New Cat's Eye, posted 09-02-2011 10:03 AM New Cat's Eye has not replied

  
Admin
Director
Posts: 13018
From: EvC Forum
Joined: 06-14-2002
Member Rating: 1.9


(1)
Message 20 of 20 (631788)
09-03-2011 7:59 AM


Image dBCode Improvements
I've just released a couple minor improvements to the [img] and [thumb] dBCodes. You can now specify a height along with a width. For example, this would specify that the image be displayed at 100 pixels wide by 200 pixels high:
[img=100x200]http://mysite.com/myimage.jpg[/img]
If the actual image width is larger than the displayed image width then when you click on the image it will grow to it's actual width, but the aspect ratio of 100x200 will be maintained. In other words, the image will still be twice as high as wide, as seen here. The first image specifies only a width of 100, while the second specifies a width/height of 100x200, click on the images to see how aspect ratio is maintained:
The other minor improvement is that extraneous white space around the arguments is ignored. For example, this now works:
[img=    100   ,   left   ]http://mysite.com/myimage.jpg[/img]
It would display like this:
Edited by Admin, : Grammar.
Edited by Admin, : Grammar again.
Edited by Admin, : Rerender now that newly introduced image display bug is fixed.

--Percy
EvC Forum Director

  
Newer Topic | Older Topic
Jump to:


Copyright 2001-2023 by EvC Forum, All Rights Reserved

™ Version 4.2
Innovative software from Qwixotic © 2024