This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

kriskoyk

  • *****
  • 324 posts
Resize image
« on: February 28, 2021, 05:30:53 PM »
I am trying to resize the image. Changes are made to the tinyMCE processor, but changes are not displayed at the front of the website.
« Last Edit: March 05, 2021, 10:48:38 PM by kriskoyk »

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #1 on: March 05, 2021, 10:48:50 PM »
Is there a solution to the problem?

*

MB Themes

Re: Resize image
« Reply #2 on: March 06, 2021, 02:02:05 PM »
@kriskoyk
Not quite sure what you mean by changing image size
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #3 on: March 06, 2021, 03:48:52 PM »
On a page I upload an image which is too large and I want to shrink it but the resizing system does not work. To be precise, in the bender theme, the size correction I make appears, but in the sigma theme, its original dimension always appears.
« Last Edit: March 06, 2021, 03:59:10 PM by kriskoyk »

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #4 on: March 06, 2021, 04:10:36 PM »
I change the SIGMA theme in style.css this:

/* RESET */
fieldset{border:none;display:inline-block;padding:0;margin:0;width:100%;}html,input,select,textarea,button{font-family:'Nunito',sans-serif;}div{margin:0;padding:0;}html{color:#222;box-sizing:border-box;font-size:14px;line-height:18px;cursor:default;-moz-tab-size:4;tab-size:4;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-break:break-word;}*,*:before,*:after{box-sizing:inherit}body{display:block;margin:0;font-weight:normal;width:100%;}p,ol,ul{display:inline-block;margin:0;padding:0;font-weight:normal;width:100%;}ol,ul{list-style:none}img{max-width:100%;width:auto;height:auto}
body, html {direction:ltr;}

 with this:

 /* RESET */
fieldset{border:none;display:inline-block;padding:0;margin:0;width:100%;}html,input,select,textarea,button{font-family:'Nunito',sans-serif;}div{margin:0;padding:0;}html{color:#222;box-sizing:border-box;font-size:14px;line-height:18px;cursor:default;-moz-tab-size:4;tab-size:4;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-break:break-word;}*,*:before,*:after{box-sizing:inherit}body{display:block;margin:0;font-weight:normal;width:100%;}p,ol,ul{display:inline-block;margin:0;padding:0;font-weight:normal;width:100%;}ol,ul{list-style:none}img{max-width:100%;width:auto\9;height:auto}
body, html {direction:ltr;}

 and the changes I make to the image size appear normally, but I do not know if the method is correct.
« Last Edit: March 06, 2021, 04:17:03 PM by kriskoyk »

*

MB Themes

Re: Resize image
« Reply #5 on: March 07, 2021, 01:46:49 PM »
@kriskoyk
I would recommend you:
1) provide url
2) provide steps to reproduce problem
3) provide screenshot
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #6 on: March 07, 2021, 10:27:42 PM »

*

MB Themes

Re: Resize image
« Reply #7 on: March 08, 2021, 08:13:34 AM »
@kriskoyk
Not sure what is wrong there, image is properly shown based on it's width/height.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #8 on: March 08, 2021, 08:45:01 AM »
The images are not the same. The first is 320x240 and the one that appears in the sigma theme is 900x675.
That is, while I reduced the photo to 320x240, the photo appeared in the sigma 900x675 theme.
« Last Edit: March 08, 2021, 09:28:03 AM by kriskoyk »

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #9 on: March 08, 2021, 09:36:11 AM »

*

MB Themes

Re: Resize image
« Reply #10 on: March 08, 2021, 10:49:11 AM »
@kriskoyk
As far as my eyes can see, image is properly shown. No overflow, proper aspect ratio.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #11 on: March 08, 2021, 12:43:49 PM »

*

MB Themes

Re: Resize image
« Reply #12 on: March 08, 2021, 12:48:13 PM »
Theme contain auto corrective style for images, you will have to disable this on static page. Problem is that tinymce put size as html attributes
Code: [Select]
img {
    max-width: 100%;
    width: auto;
    height: auto;
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 324 posts
Re: Resize image
« Reply #13 on: March 08, 2021, 01:53:41 PM »
Is this the file I need to fix?

oc-content\themes\sigma\css\style.css

/* RESET */
fieldset{border:none;display:inline-block;padding:0;margin:0;width:100%;}html,input,select,textarea,button{font-family:'Nunito',sans-serif;}div{margin:0;padding:0;}html{color:#222;box-sizing:border-box;font-size:14px;line-height:18px;cursor:default;-moz-tab-size:4;tab-size:4;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-break:break-word;}*,*:before,*:after{box-sizing:inherit}body{display:block;margin:0;font-weight:normal;width:100%;}p,ol,ul{display:inline-block;margin:0;padding:0;font-weight:normal;width:100%;}ol,ul{list-style:none}img {max-width: 100%;width: auto;height: auto;}
body, html {direction:ltr;}

*

MB Themes

Re: Resize image
« Reply #14 on: March 08, 2021, 04:06:14 PM »
@kriskoyk
Correct.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots