Advertisement:

Author Topic: Regarding uploaded image sizes  (Read 2810 times)

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Regarding uploaded image sizes
« on: August 28, 2019, 03:07:25 PM »
The height and width settings of the images I upload do not work.

The size of the images that I upload is loaded in that way.


I want to have the size of the pictures in the settings I set. How do I set. I made the normal settings but those settings are not active. what is the reason of this.

sorry to translate

Offline drewactual

  • Full Member
  • ***
  • Posts: 694
    • College Football Fan Site CFB51
Re: Regarding uploaded image sizes
« Reply #1 on: August 28, 2019, 03:17:35 PM »
your best bet in light of the tricky settings not working all the time if at all, is to use CSS...

in your stylesheet, add at the bottom:
Code: [Select]
.post img{
              max-width:500px;
              height:auto;
              /*or enter the max width you want in pixels instead of 500 leaving the height auto
             OR
              defining the height and leaving the width auto
             e.g
             max-height:500px;
             width:auto;
             */
}

play with the width or height until you're happy with the maximum.  if you want to make it prettier, you can:

Code: [Select]
.post img  {
                 max-width:500px;
                 width:auto;
                 border:1px solid #000;
                 border-radius:.5em;
                 box-shadow: 0 0 15 #eee; /* or use green, red, blue, yellow, ect.. in place of the #eee */
                }

and that is the way to do it in 2.0.xxxx, with any reliability.
« Last Edit: August 28, 2019, 03:57:03 PM by drewactual »

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Re: Regarding uploaded image sizes
« Reply #2 on: August 28, 2019, 04:24:58 PM »
your best bet in light of the tricky settings not working all the time if at all, is to use CSS...

in your stylesheet, add at the bottom:
Code: [Select]
.post img{
              max-width:500px;
              height:auto;
              /*or enter the max width you want in pixels instead of 500 leaving the height auto
             OR
              defining the height and leaving the width auto
             e.g
             max-height:500px;
             width:auto;
             */
}

play with the width or height until you're happy with the maximum.  if you want to make it prettier, you can:

Code: [Select]
.post img  {
                 max-width:500px;
                 width:auto;
                 border:1px solid #000;
                 border-radius:.5em;
                 box-shadow: 0 0 15 #eee; /* or use green, red, blue, yellow, ect.. in place of the #eee */
                }

and that is the way to do it in 2.0.xxxx, with any reliability.


Thank you, I have no problem with style.

I'm talking about the size of the image I upload does not change the size I want


I want 1200X1200 but the image is loading in its size.

Offline drewactual

  • Full Member
  • ***
  • Posts: 694
    • College Football Fan Site CFB51
Re: Regarding uploaded image sizes
« Reply #3 on: August 28, 2019, 06:33:34 PM »
ah... that's a different animal altogether.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,296
Re: Regarding uploaded image sizes
« Reply #4 on: August 28, 2019, 09:06:43 PM »
If you are referring to images included in posts with [img][/img] tags, you can resize them by setting max width/height in Admin -> Features and Options -> Layout.  If you want to resize attachments, you can use this mod -

https://custom.simplemachines.org/mods/index.php?mod=2206

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Re: Regarding uploaded image sizes
« Reply #5 on: August 29, 2019, 10:52:57 AM »
If you are referring to images included in posts with [img][/img] tags, you can resize them by setting max width/height in Admin -> Features and Options -> Layout.  If you want to resize attachments, you can use this mod -

https://custom.simplemachines.org/mods/index.php?mod=2206

Although I make settings from the part you say, the pictures are loaded in the original size.


Do you think it could be because of exif pictures. previously exif images were not loaded


Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,614
    • StoryBB/StoryBB on GitHub
Re: Regarding uploaded image sizes
« Reply #6 on: August 29, 2019, 10:58:56 AM »
Are you talking about attachments or people using the img bbcode? The settings mentioned here are not for attachments.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Re: Regarding uploaded image sizes
« Reply #7 on: August 29, 2019, 11:32:25 AM »
Are you talking about attachments or people using the img bbcode? The settings mentioned here are not for attachments.

I'm talking about the pictures added to the plugin.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,296
Re: Regarding uploaded image sizes
« Reply #8 on: August 29, 2019, 04:44:49 PM »
Plugin?  Are you referring to a mod?  Which mod?

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Re: Regarding uploaded image sizes
« Reply #9 on: August 31, 2019, 05:39:26 PM »
Plugin?  Are you referring to a mod?  Which mod?

I'm not talking about mod. I'm talking about the default settings of smf.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,296
Re: Regarding uploaded image sizes
« Reply #10 on: September 01, 2019, 12:06:51 AM »
I'm talking about the pictures added to the plugin.

Not understanding your question. :(

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,438
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: Regarding uploaded image sizes
« Reply #11 on: September 01, 2019, 06:16:46 AM »

I want 1200X1200 but the image is loading in its size.


What exactly is the size of the image you're uploading?  Also I'm assuming you're uploading by attaching the image to a post, is that correct?

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,296
Re: Regarding uploaded image sizes
« Reply #12 on: September 01, 2019, 04:50:18 PM »
The screenshot posted above is of an attachment.  Attachments are not resized unless a mod is used to do that.  You can specify a max size for thumbnails in attachment settings, but the attached image will be displayed full size when thumbnail is clicked.  You can only resize it with a mod, or by editing code, which is obviously not a good idea in this case.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,500
  • Gender: Male
    • Kindred-999 on GitHub
Re: Regarding uploaded image sizes
« Reply #13 on: September 02, 2019, 08:39:11 AM »
Also, images will **NOT** be resized "upward".
a 300x300 will nto be resized to 1200x1200 no matter what settings you use. The settings (and even the mod, afaik) set the MAX size.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Re: Regarding uploaded image sizes
« Reply #14 on: September 02, 2019, 01:41:38 PM »

I want 1200X1200 but the image is loading in its size.


What exactly is the size of the image you're uploading?  Also I'm assuming you're uploading by attaching the image to a post, is that correct?

The image size I uploaded is 4500x3500 so I want it to go above 1200x1200.

The screenshot posted above is of an attachment.  Attachments are not resized unless a mod is used to do that.  You can specify a max size for thumbnails in attachment settings, but the attached image will be displayed full size when thumbnail is clicked.  You can only resize it with a mod, or by editing code, which is obviously not a good idea in this case.

I need to use which mode I want to resize when loading the picture.

Also, images will **NOT** be resized "upward".
a 300x300 will nto be resized to 1200x1200 no matter what settings you use. The settings (and even the mod, afaik) set the MAX size.

I want pictures that are 4500 x 3500 to be uploaded in the sizes I want. For example, 1200x1200

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Re: Regarding uploaded image sizes
« Reply #15 on: September 04, 2019, 03:19:51 AM »
Don't know anything about this

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,296
Re: Regarding uploaded image sizes
« Reply #16 on: September 04, 2019, 11:43:34 AM »
If you want to resize attachments, you can use this mod -

https://custom.simplemachines.org/mods/index.php?mod=2206

Attachments are not resized unless a mod is used to do that.  You can specify a max size for thumbnails in attachment settings, but the attached image will be displayed full size when thumbnail is clicked.  You can only resize it with a mod.


We've answered your question several times.  What is it you're not understanding?

Offline tarantula901

  • Jr. Member
  • **
  • Posts: 327
Re: Regarding uploaded image sizes
« Reply #17 on: September 05, 2019, 02:50:26 AM »
If you want to resize attachments, you can use this mod -

https://custom.simplemachines.org/mods/index.php?mod=2206

Attachments are not resized unless a mod is used to do that.  You can specify a max size for thumbnails in attachment settings, but the attached image will be displayed full size when thumbnail is clicked.  You can only resize it with a mod.


We've answered your question several times.  What is it you're not understanding?


Even though I do what you say, it doesn't work. I was using the mode you said you did not affect the subject had to open.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,296
Re: Regarding uploaded image sizes
« Reply #18 on: September 05, 2019, 05:53:57 PM »
The mod adds settings to Admin -> Attachments and Avatars -> Attachment Settings.  You have to set max width and height in the new settings.

Offline gecitli

  • Jr. Member
  • **
  • Posts: 276
    • webmaster forumu
Re: Regarding uploaded image sizes
« Reply #19 on: September 06, 2019, 04:39:02 AM »
You can solve this with a simple css code

Code: [Select]
.bbc_img {
    max-width: 400px;
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 1, 1);
}

Code: [Select]
.bbc_img:hover {
    max-width: 100%
}

example

Mouse point to picture.
http://www.webtiryaki.com

webmaster forumu

Free & Premium Responsive Themes for SMF.