Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: tarantula901 on August 28, 2019, 03:07:25 PM

Title: Regarding uploaded image sizes
Post by: tarantula901 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
Title: Re: Regarding uploaded image sizes
Post by: 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.
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on August 28, 2019, 04:24:58 PM
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.
Title: Re: Regarding uploaded image sizes
Post by: drewactual on August 28, 2019, 06:33:34 PM
ah... that's a different animal altogether.
Title: Re: Regarding uploaded image sizes
Post by: 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
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on August 29, 2019, 10:52:57 AM
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

Title: Re: Regarding uploaded image sizes
Post by: 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.
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on August 29, 2019, 11:32:25 AM
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.
Title: Re: Regarding uploaded image sizes
Post by: Sir Osis of Liver on August 29, 2019, 04:44:49 PM
Plugin?  Are you referring to a mod?  Which mod?
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on August 31, 2019, 05:39:26 PM
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.
Title: Re: Regarding uploaded image sizes
Post by: Sir Osis of Liver on September 01, 2019, 12:06:51 AM
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. :(
Title: Re: Regarding uploaded image sizes
Post by: 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?
Title: Re: Regarding uploaded image sizes
Post by: 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.
Title: Re: Regarding uploaded image sizes
Post by: 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.
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on September 02, 2019, 01:41:38 PM
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
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on September 04, 2019, 03:19:51 AM
Don't know anything about this
Title: Re: Regarding uploaded image sizes
Post by: 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?
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on September 05, 2019, 02:50:26 AM
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.
Title: Re: Regarding uploaded image sizes
Post by: Sir Osis of Liver 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.
Title: Re: Regarding uploaded image sizes
Post by: gecitli on September 06, 2019, 04:39:02 AM
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 (https://webtiryaki.com/index.php/topic,274.0.html)

Mouse point to picture.
Title: Re: Regarding uploaded image sizes
Post by: Kindred on September 06, 2019, 07:09:08 AM
gecitli -- you have not been reading the thread....   this user is not talking about the display of pictures IN a message with the BBS IMG tag.  He's talking about attachments. WHat you suggested won't help.
Title: Re: Regarding uploaded image sizes
Post by: Sir Osis of Liver on September 06, 2019, 01:09:38 PM
And in this case, recommending code edits is probably not a good idea.
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on September 07, 2019, 01:22:40 PM
Quote from: Sir Osis of Liver 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.

I used the mode you said, but it does not resize pictures.

I solved my problem that exif pictures were not loading on the subject.

Couldn't the images be the size I want due to exif images?

The subject of my problem with exif.

https://www.simplemachines.org/community/index.php?topic=569381.msg4029304#msg4029304

Quote from: Sir Osis of Liver on September 06, 2019, 01:09:38 PM
And in this case, recommending code edits is probably not a good idea.

How else can we solve this problem?
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on September 12, 2019, 10:52:13 AM
Do you have a solution for this problem
Title: Re: Regarding uploaded image sizes
Post by: Sir Osis of Liver on September 12, 2019, 06:24:03 PM
The attachments resize mod does what you want.  I've been running it on one of my production forums for over a year so members can upload large images from cameras and phones, works very well.  Would need admin access to your forum to see if it is installed and configured correctly.
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on September 13, 2019, 10:12:39 AM
Quote from: Sir Osis of Liver on September 12, 2019, 06:24:03 PM
The attachments resize mod does what you want.  I've been running it on one of my production forums for over a year so members can upload large images from cameras and phones, works very well.  Would need admin access to your forum to see if it is installed and configured correctly.

Which mode are you talking about? I want the new downloadable pictures want the size I want.
Title: Re: Regarding uploaded image sizes
Post by: Illori on September 13, 2019, 10:17:20 AM
if the image uploaded is smaller then that size it will not be resized.

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


do you have the mod listed above installed and configured?
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on September 13, 2019, 02:24:43 PM
Quote from: Illori on September 13, 2019, 10:17:20 AM
if the image uploaded is smaller then that size it will not be resized.

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


Unfortunately the smf settings you are saying do not apply to the plugin.

I used the set mode, but I can't set the size I want for newly uploaded images. The problem is how to resize these exif images in one of the exif images.

do you have the mod listed above installed and configured?
Title: Re: Regarding uploaded image sizes
Post by: Sir Osis of Liver on September 13, 2019, 10:20:48 PM
Don't know if that mod will work with files including EXIF data.  You can try this one -

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

Can you attach an EXIF image file here?
Title: Re: Regarding uploaded image sizes
Post by: tarantula901 on November 03, 2019, 06:49:28 AM
Quote from: Sir Osis of Liver on September 13, 2019, 10:20:48 PM
Don't know if that mod will work with files including EXIF data.  You can try this one -

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

Can you attach an EXIF image file here?

I used the set mode I have said.

I receive an "HTTP ERROR 500" error when I set width and height values ​​under image size

I get an error when making Width and height values ​​under image size "HTTP ERROR 500"

How can I solve this problem?


I want to make the size of the image I attached to the attachment 2048x2048, but it doesn't