News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Regarding uploaded image sizes

Started by tarantula901, August 28, 2019, 03:07:25 PM

Previous topic - Next topic

tarantula901

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

drewactual

#1
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:

.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:


.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.

tarantula901

Quote from: drewactual 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:

.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:


.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.

drewactual

ah... that's a different animal altogether.

Sir Osis of Liver

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
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

tarantula901

Quote from: Sir Osis of Liver 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

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


Arantor

Are you talking about attachments or people using the img bbcode? The settings mentioned here are not for attachments.

tarantula901

Quote from: Arantor 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.

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

Sir Osis of Liver

Plugin?  Are you referring to a mod?  Which mod?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

tarantula901

Quote from: Sir Osis of Liver on August 29, 2019, 04:44:49 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.

Sir Osis of Liver

Quote from: tarantula901 on August 29, 2019, 11:32:25 AM
I'm talking about the pictures added to the plugin.

Not understanding your question. :(
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

lurkalot

Quote from: tarantula901 on August 28, 2019, 04:24:58 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?

Sir Osis of Liver

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.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

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.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

tarantula901

Quote from: lurkalot on September 01, 2019, 06:16:46 AM
Quote from: tarantula901 on August 28, 2019, 04:24:58 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.

Quote from: Sir Osis of Liver 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.

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

Quote from: Kindred 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.

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

tarantula901


Sir Osis of Liver

Quote from: Sir Osis of Liver on August 28, 2019, 09:06:43 PM
If you want to resize attachments, you can use this mod -

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

Quote from: Sir Osis of Liver on September 01, 2019, 04:50:18 PM
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?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

tarantula901

Quote from: Sir Osis of Liver on September 04, 2019, 11:43:34 AM
Quote from: Sir Osis of Liver on August 28, 2019, 09:06:43 PM
If you want to resize attachments, you can use this mod -

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

Quote from: Sir Osis of Liver on September 01, 2019, 04:50:18 PM
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.

Sir Osis of Liver

The mod adds settings to Admin -> Attachments and Avatars -> Attachment Settings.  You have to set max width and height in the new settings.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

gecitli

You can solve this with a simple css code

.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);
}


.bbc_img:hover {
    max-width: 100%
}


example

Mouse point to picture.
http://www.webtiryaki.com
webmaster forumu
Free & Premium Responsive Themes for SMF.

Advertisement: