[Button] Imagefit

Finished Scripts and Buttons ready for download can be found here.

Moderators: Support Staff², Support Staff, Developer, AvantGuard

User avatar
bigC
AvantGuard
AvantGuard
Posts: 7243
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 8.1
Avant Version: 2015 Build 9
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

[Button] Imagefit

Postby bigC » Sun Jan 06, 2008 8:07 pm

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.

Click Here to Auto Install
...or download below,
ImageFit.aba
(3.25 KiB) Downloaded 822 times

shasha
Newbie
Newbie
Posts: 30
Joined: Sun Mar 08, 2009 8:35 pm
Windows Version: XP SP3
Avant Version: 11.7 build 22
IE Version: 7

Re: [Button] Imagefit

Postby shasha » Tue Aug 25, 2009 2:52 pm

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.

User avatar
bigC
AvantGuard
AvantGuard
Posts: 7243
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 8.1
Avant Version: 2015 Build 9
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Re: [Button] Imagefit

Postby bigC » Tue Aug 25, 2009 7:54 pm

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.

User avatar
sulpherdragon
Contributor
Contributor
Posts: 222
Joined: Sat Dec 15, 2007 9:51 pm
Windows Version: Windows 7
Avant Version: 2013 Build 23
Default engine: Firefox
IE Version:
Skin:
Contact:

Re: [Button] Imagefit

Postby sulpherdragon » Wed Aug 26, 2009 1:34 am

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
Image

User avatar
André
Administrator
Administrator
Posts: 5787
Joined: Sat Dec 14, 1901 3:19 am
Windows Version: Windows 7 x64
Avant Version:
Location: Baltimore and McHenry, Maryland, USA
Contact:

Re: [Button] Imagefit

Postby André » Wed Aug 26, 2009 1:41 am

I'm thinking the best way to do this would be to take all images greater than a particular size and shrink them.
Formerly known as DrDrrae.
Image
I am not a member of the development team.
Please search the forum before posting questions.

Avant Force Wiki || Avant Force Blog
Desktop:
Intel C2Q Q9550 @ 3.7GHz || 8GiBs DDR2 800 @ 435MHz || Asus P5E
112 GiB SSD || 931 GiB HDD || 2x ATI 5770 in CrossfireX || Picture

NetBook:
ASUS Eee PC 1000HE || 1.66 GHz Atom N280 || 2 GiB DDR2 667 || 320 GiB HDD

NAS:
Intel E5200 @ 2.632 GHz || 4 GiB DDR2 800 @ 421 MHz || Foxconn G31MXP-K
5.45 TiB RAID 6

shasha
Newbie
Newbie
Posts: 30
Joined: Sun Mar 08, 2009 8:35 pm
Windows Version: XP SP3
Avant Version: 11.7 build 22
IE Version: 7

Re: [Button] Imagefit

Postby shasha » Sun Sep 06, 2009 7:52 pm

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.


Return to “Scripts and Buttons Releases”

Who is online

Users browsing this forum: No registered users