Доброго времени суток всем.
Возникла капитальная проблема:
При помощи скрипта генерирую картинку png. Во всех браузерах показывает норма, а от в Осле, ФУФЛО!!!
Вот исходник кода генерации:
[PHP]<?php
include("../../../php_mysql/lib/browser_function.php");
$temp=explode('/',$_GET['r']);
$TColor=explode('_',$temp[0]);
$color=$TColor[0];
$opacity=$TColor[1];
//if(AppNameB()=="IE" || AppNameB()=="OT")$opacity=0;
$TCBlock=explode('.',$temp[2]);
$CBlock=$TCBlock[0];
$AColor=str_split($color, 2);
$TBlock=$temp[1];
$TTBlock=array('circle'=>IMG_ARC_EDGED,'triangle'=>IMG_ARC_CHORD,'hide'=>IMG_ARC_NOFILL);
if(!in_array($TBlock,$TTBlock))
$TImg = imagecreate(250,250);
imagecolortransparent($TImg, imagecolorallocate($TImg, 0, 0, 0));
imagealphablending($TImg, true);
if($CBlock=='topleft'){
imagefilledarc ($TImg, 200, 199, 101, 99, 180, -90, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ), $TTBlock[$TBlock]);
imagefilledrectangle ($TImg, 150, 200, 250, 250, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
imagefilledrectangle ($TImg, 200, 150, 250, 199, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ));
}elseif($CBlock=='top'){
imagefilledrectangle ($TImg,0,150, 250, 250, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
}elseif($CBlock=='topright'){
imagefilledarc ($TImg, 50, 199, 99, 100, 270, 0, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ), $TTBlock[$TBlock]);
imagefilledrectangle ($TImg,0,150,50,200, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
imagefilledrectangle ($TImg, 0, 200, 100, 250, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ));
}elseif($CBlock=='right'){
imagefilledrectangle ($TImg,0,0, 100, 250, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
}elseif($CBlock=='left'){
imagefilledrectangle ($TImg,150,0, 250, 250, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
}
elseif($CBlock=='bottomright'){
imagefilledarc ($TImg, 50, 50, 101, 101, 0, 90, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ), $TTBlock[$TBlock]);
imagefilledrectangle ($TImg, 0, 0, 100, 50, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
imagefilledrectangle ($TImg, 0, 50, 50, 100, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ));
}elseif($CBlock=='bottom'){
imagefilledrectangle ($TImg,0,0, 250, 100, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
}elseif($CBlock=='bottomleft'){
imagefilledarc ($TImg, 200, 50, 101, 101, 90, 180, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ), $TTBlock[$TBlock]);
imagefilledrectangle ($TImg, 150, 0, 250, 50, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity));
imagefilledrectangle ($TImg, 200, 50, 250, 100, imagecolorallocatealpha ( $TImg , hexdec($AColor[0]) ,hexdec($AColor[1]) , hexdec($AColor[2]), $opacity ));
}else{
imagedestroy($TImg);
exit;
}
$Img = imagecreate(25,25);
imagecolortransparent($Img, imagecolorallocate($Img, 0, 0, 0));
imagecopyresampled($Img,$TImg,0,0,0,0,25,25,250,250);
//imagedestroy($TImg);
header("Content-type: image/png");
imagepng($Img);
imagedestroy($Img);
imagedestroy($TImg);
?>
[/PHP]
Имеется файл .htaccess к директории
[PHP]RewriteEngine on
##RewriteBase images/suit/block_images/
RewriteRule ^(.*)$ block_images.php?r=$1 [L,QSA][/PHP]
Ссылка на картинку прописывается типа:
http://zhukv.com/images/suit/block_images/AAAAAA_75/circle/topleft.png
После block_images/ прописываются параметры изображения. Если их передавать по $_GET, типа
http://zhukv.com/images/suit/block_images/...mp;type=topleft , работает норма в ОСЛЕ, а вот так не хочет!!!
Если в параметрах создания, установить параметр $opacity на нуль, ИЕ отображает нормально, но если больше, картинки вообще нет.
В чем здесь проблема? Пробывал притулять в стиль фильтр, не помогает.
Замечание модератора:
Эта тема была закрыта автоматически ввиду отсутствия активности в ней на протяжении 100+ дней.
Если Вы считаете ее актуальной и хотите оставить сообщение, то воспользуйтесь кнопкой
или обратитесь к любому из модераторов.
|