diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 07:21:47 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-07-29 07:21:47 +0000 |
commit | 755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71 (patch) | |
tree | bef53f58330458ed620afd0e9ada526355d99ff7 /lib/ui.lib.php | |
parent | ee9999a93074c737ffc298c8370ef05a3121cfa0 (diff) | |
download | ampache-755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71.tar.gz ampache-755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71.tar.bz2 ampache-755ab35f6b6b0e78bbff6ca24f3f44008d9a4f71.zip |
fixed the album art gathering, enabled art resizing and saving of said stuff... not sure if saving and retriving is saving any time. tweaked show test config wording
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index b89b4fea..ff863c78 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -514,15 +514,15 @@ function img_resize($image,$size,$type,$album_id) { /* Make sure they even want us to resize it */ if (!Config::get('resize_images')) { - return $image['art']; + return $image['raw']; } // Already resized - if ($image['resized']) { + if ($image['db_resized']) { debug_event('using_resized','using resized image for Album:' . $album_id,'2'); - return $image['art']; + return $image['raw']; } - $image = $image['art']; + $image = $image['raw']; if (!function_exists('gd_info')) { return false; } @@ -541,7 +541,10 @@ function img_resize($image,$size,$type,$album_id) { $src = imagecreatefromstring($image); - if (!$src) { return false; } + if (!$src) { + debug_event('IMG_RESIZE','Failed to create from string','3'); + return false; + } $width = imagesx($src); $height = imagesy($src); @@ -552,6 +555,7 @@ function img_resize($image,$size,$type,$album_id) { $img = imagecreatetruecolor($new_w,$new_h); if (!imagecopyresampled($img,$src,0,0,0,0,$new_w,$new_h,$width,$height)) { + debug_event('IMG_RESIZE','Failed to copy resample image','3'); return false; } |