Page 1 of 1

[Button] Imagefit

Posted: Sun Jan 06, 2008 8:07 pm
by bigC
Adds a button to your Add-on Buttons bar that resizes the images you're currently viewing to fit your screen.

This works only on images that are opened in their own window/tab.

[url=aba://forum.avantbrowser.com/download.php?id=512]Click Here to Auto Install[/url]
...or download below,
ImageFit.aba
(3.25 KiB) Downloaded 1063 times

Re: [Button] Imagefit

Posted: Tue Aug 25, 2009 2:52 pm
by shasha
Is there anyway to make this so that it resizes pictures on forums so that the scrollbar on the bottom is gone? I ask because a lot of times a picture may be wider than the frame that it is in even though it is smaller than the client window size.

Re: [Button] Imagefit

Posted: Tue Aug 25, 2009 7:54 pm
by bigC
I don't think so with this script but I imagine an addon could be made for that. Start a thread in Scripts and Buttons Development and Discussions, perhaps someone more skilled with javascript can come up with something.

Re: [Button] Imagefit

Posted: Wed Aug 26, 2009 1:34 am
by sulpherdragon
shasha wrote:Is there anyway to make this so that it resizes pictures on forums so that the scrollbar on the bottom is gone? I ask because a lot of times a picture may be wider than the frame that it is in even though it is smaller than the client window size.
Can you give an example website so people can try out peices of code? It would help

Re: [Button] Imagefit

Posted: Wed Aug 26, 2009 1:41 am
by André
I'm thinking the best way to do this would be to take all images greater than a particular size and shrink them.

Re: [Button] Imagefit

Posted: Sun Sep 06, 2009 7:52 pm
by shasha
Here's an example although it's not that extreme in this case.

http://acapella.harmony-central.com/sho ... 098&page=5

Basically the image fit would ideally fit the image so that the text didn't go off the screen. Perhaps I am just expecting too much.