1 (edited by 2013-11-27 13:54:12)

Topic: after upgrading from GitHub.

Included Generate thumbnail after upload big image
After loading an image 50x50, it increases and is overwritten to 365x365 - why ?

http://detcorp.ru/errImage.jpg

Re: after upgrading from GitHub.

Included Generate thumbnail after upload big image
After loading an image 50x50, it increases and is overwritten to 365x365 - why ?

http://detcorp.ru/errImage.jpg


I have the same problem and it's driving me crazy! Help someone

3 (edited by 2014-02-11 14:22:59)

Re: after upgrading from GitHub.

open core/modules/media.php (backup first, just in case)

search for this (lines 45-54):

    if ($nw == 0)
      {
          $resize = TRUE;
          $nw = $w * ($nh / $h);
      }
      elseif ($nh == 0)
      {
          $resize = TRUE;
          $nh = $h * ($nw / $w);
      }

change it to this :

    if ($nw <= 365)
      {
          $resize = TRUE;
          $nw = $w * ($nh / $h);
      }
      elseif ($nh <= 365)
      {
          $resize = TRUE;
          $nh = $h * ($nw / $w);
      }

I hope this helps. I'm not sure it's correct, haven't tested

4 (edited by 2014-02-13 05:33:26)

Re: after upgrading from GitHub.

We've made fixes (you can find the commit at https://github.com/CuteNews/cutenews-2.0/co...47d37eee9f1bb72 ) allowing for writing thumbnails separately from uploaded images.

Best regards,
CN Support team

Re: after upgrading from GitHub.

We've made fixes (you can find the commit at https://github.com/CuteNews/cutenews-2.0/co...47d37eee9f1bb72 ) allowing for writing thumbnails separately from uploaded images.


that worked thanks so much!

6 (edited by 2014-02-24 16:51:37)

Re: after upgrading from GitHub.

Not fixed :
Uploading a picture size of 100px - why create the file size 365px ???

http://detcorp.ru/error.jpg