![]() |
|
![]() |
#1 |
Veteran
AMA #: 2846730
Contributor + + + +
Join Date: Dec 2009
Location: Oz
Motorcycles: CB500XA
Name: Rod
|
How to fix huge posted images
This works with Firefox or Google Chrome. It fixes the problem of posted images that are too wide to fit your browser window. It also limits image height to 800 pixels (you might adjust that to your taste).
Instructions below are for Firefox. For Chrome see post #4. First you have to install GreaseMonkey: 1. Go to Tools -> Add-ons -> Get Addons. 2. Search for GreaseMonkey. 3. Install, then Restart Now. To install the magic BARF script: 1. Highlight the script code below and copy it into your clipboard with Ctrl-C or Edit -> Copy. 2. Click the dropdown arrow next to the monkey icon near the top right of your screen. 3. Select New User Script. 4. Click "Use Script from Clipboard". 5. Click Save. 6. Close the script window. 7. Go BARFing! Code:
// ==UserScript== // @name resizeBARF // @namespace rodr // @description Limit images in vBulletin 3 posts to available width. // @include http://bayarearidersforum.com/* // @include http://www.bayarearidersforum.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js // @version 1 // @grant none // ==/UserScript== $(document).ready(function() { $('[id^="post_message_"] img').css("maxWidth", "100%"); $('[id^="post_message_"] img').css("maxHeight", "800px"); });
__________________
Glacier and Yellowstone Reconnection Ride Yosemite Death Valley Big Sur BARF Bash Lake County Dirt The Stepdaughter New Tire Ride Delta Day Ride Northern California and Oregon Foothills Ride Campgrounds on the California Coast Last edited by rodr; 06-13-2016 at 10:37 AM.. |
![]() |
![]() |
![]() |
#2 |
Cupid Stunt
Contributor +++
Join Date: May 2006
Location: San Jose
Motorcycles: '93 CBR900RR
Name: James
|
Or, you can just right-click on the image and select 'View Image'.
|
![]() |
![]() |
![]() |
#3 |
Veteran
AMA #: 2846730
Contributor + + + +
Join Date: Dec 2009
Location: Oz
Motorcycles: CB500XA
Name: Rod
|
Well sure, if you like getting out of your car to open the garage door.
![]() |
![]() |
![]() |
![]() |
#4 |
Veteran
AMA #: 2846730
Contributor + + + +
Join Date: Dec 2009
Location: Oz
Motorcycles: CB500XA
Name: Rod
|
Instructions for Google Chrome turn out to be very similar to Firefox:
First you have to install TamperMonkey: 1. Go to Settings -> Extensions -> Get more extensions 2. Search for TamperMonkey. 3. Install. To install the magic BARF script: 1. Highlight the script in post #1 and copy it into your clipboard with Ctrl-C. 2. Click the TamperMonkey icon near the top right of your screen (black rectangle with two white dots). 3. Select "Add a new script...". 4. Hit Ctrl-A or otherwise highlight all the default script text and then Ctrl-V to paste in the script from your clipboard. 5. Click Save (the floppy disk icon). 6. Close the script tab and any other tabs you don't want any more. 7. Go BARFing! |
![]() |
![]() |
![]() |
#5 |
General Menace
AMA Life Member #203453
Highway Aviator
Founding Member
Top Percent Poster
Community Contributor + BB
Moto Junkie
Join Date: Apr 2002
Location: Palo Alto, Ca.
Motorcycles: Keep me rocking life
Name: Budman
|
I am going to stick this so I can point to it easily in the future.
Not sure we can get folks to engage, but for rally pic threads having the pictures historically attached is such a hug win.
__________________
BARF Terms of Service Be a BARF Contributor! Support those that support Barf! BARF Sponsors 1Rider introduction on KFOG Bone heads and bikers podcasts Racism and RIP threads on Barf - FYI Barf is more than a dub dub dub dealio Godspeed Mom ![]() ![]() ![]() ![]() AMA #203453 ![]() |
![]() |
![]() |
![]() |
#6 |
Veteran
AMA #: 2846730
Contributor + + + +
Join Date: Dec 2009
Location: Oz
Motorcycles: CB500XA
Name: Rod
|
Thanks Dennis. Yeah folks are smarter about posting pics now, but this should help with the older threads.
|
![]() |
![]() |
![]() |
#7 |
Veteran
Join Date: Apr 2005
Location: Petalma
Motorcycles: '05 GSXR 1000 and '06 GSXR 750
Name:
|
IDK, still seems like a lot of clicking to scale down physical size. If the file size is too large, does it trim that too?
I've use Image Resizer (https://imageresizer.codeplex.com/) for years. Just right clickan image file, select resize image, check which size (it'll remember you choice from here after), and by default it creates a copy of the original, both smaller dimensions and file size. You can select multiple files and resize all at once. I use it for forums emailing, etc
__________________
2006 Chrysler 300c HEMI 2005 GSXR 1000 2006 GSXR 750 2006 GSXR 600 (hers) AFM# 77 |
![]() |
![]() |
![]() |
#8 |
Veteran
AMA #: 2846730
Contributor + + + +
Join Date: Dec 2009
Location: Oz
Motorcycles: CB500XA
Name: Rod
|
If you are posting photos you should definitely resize them as appropriate. This tool is not for that; it's for easier viewing of the occasional pictures where that was not done.
__________________
Glacier and Yellowstone Reconnection Ride Yosemite Death Valley Big Sur BARF Bash Lake County Dirt The Stepdaughter New Tire Ride Delta Day Ride Northern California and Oregon Foothills Ride Campgrounds on the California Coast Last edited by rodr; 07-03-2016 at 08:28 PM.. |
![]() |
![]() |
![]() |
#9 |
Veteran
Contributor + + 6.5%
Join Date: Mar 2011
Location: SJ
Motorcycles: 09 SVS
Name:
|
Or perhaps since Budman seem to be in support of this workaround, BaRF can add those two lines to its CSS and save everyone that's not a webbie the trouble of dealing with greasemonkey ?
|
![]() |
![]() |
![]() |
#10 |
Veteran
AMA #: 2846730
Contributor + + + +
Join Date: Dec 2009
Location: Oz
Motorcycles: CB500XA
Name: Rod
|
If there's a sufficiently trusted techie who knows how to modify the CSS, that would be ideal.
|
![]() |
![]() |
![]() |
#11 |
- Kawasaki Fanatic -
Founding Member
From the heart
Join Date: May 2002
Location: San Lorenzo, CA "The Mudflats"
Motorcycles: ZRX1200
Name: "Dave"
|
// ==UserScript==
// @name resizeBARF // @namespace rodr // @description Limit images in vBulletin 3 posts to available width. // @include http://bayarearidersforum.com/* // @include http://www.bayarearidersforum.com/* // @require http://ajax.googleapis.com/ajax/libs.../jquery.min.js // @version 1 // @grant none // ==/UserScript== $(document).ready(function() { $('[id^="post_message_"] img').css("maxWidth", "100%"); $('[id^="post_message_"] img').css("maxHeight", "800px"); }); woops, no workie.....likely hard headed old rider...?
__________________
Enjoy the ride! Last edited by EastBayDave; 07-04-2016 at 11:01 AM.. |
![]() |
![]() |
![]() |
#13 | |
Veteran
Join Date: Aug 2015
Location: San Francisco
Motorcycles: R1200R
Name:
|
Quote:
Code:
[id^="post_message_"] img { max-width: 100%; max-height: 800px; } Just mentioning incase this is not known/obvious. |
|
![]() |
![]() |
![]() |
#14 |
Like a Boss.
Barf Tech Admin
Founding Member
Join Date: Feb 2002
Location: W. Sacramento
Motorcycles: Are dangerous
Name: Brian
|
No need for the OP workaround.
The autoresizing has been added to the CSS for images. If you encounter any "super wide" images, please let me know. |
![]() |
![]() |
![]() |
#15 |
Veteran
AMA #: 2846730
Contributor + + + +
Join Date: Dec 2009
Location: Oz
Motorcycles: CB500XA
Name: Rod
|
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|