1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00

Resolve #401 new database update, reset album thumbs and use resized art...

This commit is contained in:
Karl 'vollmerk' Vollmer 2009-03-01 02:35:42 +00:00
parent c9ccb05a40
commit e474991d13
14 changed files with 94 additions and 38 deletions

View file

@ -46,7 +46,7 @@ switch ($_REQUEST['thumb']) {
case '2':
$size['height'] = '128';
$size['width'] = '128';
$return_raw = true;
// $return_raw = true;
break;
case '3':
/* This is used by the flash player */
@ -57,7 +57,7 @@ switch ($_REQUEST['thumb']) {
default:
$size['height'] = '275';
$size['width'] = '275';
$return_raw = true;
// $return_raw = true;
break;
} // define size based on thumbnail
@ -104,7 +104,7 @@ switch ($_REQUEST['type']) {
$art_data = $art['raw'];
}
else {
$art_data = img_resize($art,$size,$extension,$_REQUEST['id']);
$art_data = img_resize($art,array('width'=>'275','height'=>'275'),$extension,$_REQUEST['id']);
}
// Send the headers and output the image