Hi,
since I'm talking to myself, I scripted a workaround, which might be interessting for others. It's just a simple php script, which passes through the cover jpg's. And yes it's simple, so it's just doing that
http://whereeverthisscriptis/scriptname.php?size=<int>get=<hex>
<int> = pixel sive you want it to resize (poor qualit<, but better than no cover)
<hex> = hex coded local path to the cover.jpg
- Code: Select all
<?php
$get = $_GET['get'];
if ( !$get )
die("no file to get!");
$size = $_GET['size'];
if ( !$size )
die("dont know which size!");
header('Content-Type: image/jpeg');
if ( !file_exists("cache/cover_".$get.".jpg") )
{
$tmp = file_get_contents(hex2bin($get));
file_put_contents( "cache/cover_".$get.".jpg", $tmp );
}
$im = ImageCreateTrueColor($size,$size);
$cover = imagecreatefromjpeg("cache/cover_".$get.".jpg");
imagecopyresized( $im, $cover, 0, 0, 0, 0, $size, $size, imagesx($cover), imagesy($cover) );
imagejpeg($im);
function hex2bin($h)
{
if (!is_string($h))
return null;
$r='';
for ($a=0; $a<strlen($h); $a+=2)
$r.=chr(hexdec($h{$a}.$h{($a+1)}));
return $r;
}
//now it's time for a beer and listen to some music
?>
But maybe the master of this really cool tool will do somthing about the initial problem
