Author Topic: Image Size Limits  (Read 1464 times)

0 Members and 0 Guests are viewing this topic.

Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Image Size Limits
« on: January 30, 2012, 10:23:01 pm »
Where do I set the limit size for images being posted? Some of the post are huge and need to be resize smaller, but I would like to avoid this by doing a preemptive strike so to speak.

Share on Facebook Share on Twitter


Offline CreateAForum

  • Administrator
  • *****
  • Posts: 6106
  • Karma: 287
    • View Profile
Re: Image Size Limits
« Reply #1 on: January 31, 2012, 12:21:31 am »
Try under admin -> Attachments and avatars.
Like Create A Forum? Support me at https://www.patreon.com/vbgamer45/

Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Re: Image Size Limits
« Reply #2 on: March 02, 2012, 06:01:31 am »
The problem is related to those that like to Hotlink from other Sites like Photobucket. And I checked in Attachments and dropped the size way down to thumbnail size and the images are still MASSIVE.


What now?

Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Re: Image Size Limits
« Reply #3 on: March 03, 2012, 05:23:39 pm »
Bump

Offline Andrew

  • Andrew at your service
  • Global Moderator
  • *****
  • Posts: 174
  • Karma: 11
  • Gender: Male
    • View Profile
    • The Tech Cadet Blog
Re: Image Size Limits
« Reply #4 on: March 03, 2012, 10:52:40 pm »
Images inserted from Photobucket are NOT in the Attachments and Avatars.

Unfortunately, I don't think it's possible to edit the images that are inserted using the IMG code.
Please do not PM for support. General Support FAQ | Guides Index | Code Index

Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Re: Image Size Limits
« Reply #5 on: January 01, 2013, 02:30:42 am »
Has there been any updates to the ability to manually adjust images that are hot linked from sites like Photobucket, IMGUR, etc...?


Thanks.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Image Size Limits
« Reply #6 on: January 01, 2013, 02:41:43 am »
It's possible through coding, I'll have to write one later.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Re: Image Size Limits
« Reply #7 on: January 01, 2013, 03:46:29 am »
Sounds good. Let me know when it's ready and I'll add it to Penny Can. Thanks dude!

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Image Size Limits
« Reply #8 on: January 01, 2013, 04:45:27 am »
Headers(unless you already have jQuery):
Code: [Select]
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>Footers:
Code: [Select]
<script>$(window).load(function(){function xboi209_resizeimg(width,height){$("img.bbc_img").each(function(){if($(this).width()>width){$(this).width(width)}if($(this).height()>height){$(this).height(height)}})}xboi209_resizeimg(640,480)});</script>
Any images in posts that are bigger than 640x480 will be resized to 640x480, you can change this by replacing the numbers near the end of the code to suit your needs. Note that your web browser must finish loading EVERYTHING before the resizing happens so if you have a slow internet connection, you'll have to deal with the huge images until the entire page is finished loading.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Re: Image Size Limits
« Reply #9 on: January 04, 2013, 12:27:29 am »
Thanks for the code dude. Question, am I suppose to insert in both headers and footers? Does it matter than I have other codes already in there? Any conflicts?


Thanks.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Image Size Limits
« Reply #10 on: January 04, 2013, 04:16:59 am »
The first code is for the headers and the second code is for the footers, it was already stated above. My recent codes are designed to not conflict with any other possible codes that are being used so it is safe to use with any code already there.
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline CB

  • Sr. Member
  • ****
  • Posts: 253
  • Karma: 2
    • View Profile
Re: Image Size Limits
« Reply #11 on: January 04, 2013, 04:35:52 am »
Code works. But I have run into an issue. It's squashing all the images. They are no longer in proportion. I changed it to 800x600 where you had the size, but its still squashed. Any advice?
« Last Edit: January 04, 2013, 04:38:16 am by CB »

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Image Size Limits
« Reply #12 on: January 04, 2013, 06:09:57 am »
Can you link me to an example?
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Offline frfr

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Image Size Limits
« Reply #13 on: January 19, 2013, 11:02:47 pm »
Hi

Is there a modified code available?

Cheers
Flin

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: Image Size Limits
« Reply #14 on: January 19, 2013, 11:04:41 pm »
What do you want from a modified code?
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
1128 Views
Last post August 08, 2010, 03:41:46 pm
by Thornton136
0 Replies
1934 Views
Last post January 04, 2015, 03:59:14 pm
by CyanProductions
2 Replies
194 Views
Last post January 16, 2016, 07:20:05 am
by RockHard
2 Replies
155 Views
Last post February 05, 2017, 05:59:38 pm
by jmt18325
6 Replies
338 Views
Last post November 01, 2017, 01:25:14 am
by CreateAForum