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 ?
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → after upgrading from GitHub.
Included Generate thumbnail after upload big image
After loading an image 50x50, it increases and is overwritten to 365x365 - why ?
Included Generate thumbnail after upload big image
After loading an image 50x50, it increases and is overwritten to 365x365 - why ?
I have the same problem and it's driving me crazy! Help someone
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
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.
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!
Not fixed :
Uploading a picture size of 100px - why create the file size 365px ???
CutePHP Forums → Problem Solving / Help & Support → after upgrading from GitHub.
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.