Revert "Respect photo thumbnails storage in import"
This reverts commit e8918ca149
This commit is contained in:
parent
e8918ca149
commit
8730bbac2f
@ -371,19 +371,21 @@ function import_channel_photo($photo, $type, $aid, $uid) {
|
||||
|
||||
// photo size
|
||||
$img->scaleImageSquare(300);
|
||||
$r = $img->storeThumbnail($p, PHOTO_RES_PROFILE_300);
|
||||
$r = $img->save($p);
|
||||
if($r === false)
|
||||
$photo_failure = true;
|
||||
|
||||
// thumb size
|
||||
$img->scaleImage(80);
|
||||
$r = $img->storeThumbnail($p, PHOTO_RES_PROFILE_80);
|
||||
$p['imgscale'] = 5;
|
||||
$r = $img->save($p);
|
||||
if($r === false)
|
||||
$photo_failure = true;
|
||||
|
||||
// micro size
|
||||
$img->scaleImage(48);
|
||||
$r = $img->storeThumbnail($p, PHOTO_RES_PROFILE_48);
|
||||
$p['imgscale'] = 6;
|
||||
$r = $img->save($p);
|
||||
if($r === false)
|
||||
$photo_failure = true;
|
||||
|
||||
|
Reference in New Issue
Block a user