Показать сообщение отдельно
Старый 16.02.2002, 08:52
Alexei2000 вне форума Посмотреть профиль Отправить личное сообщение для Alexei2000 Найти все сообщения от Alexei2000
  № 1  
Alexei2000

Регистрация: Feb 2001
Сообщений: 26
По умолчанию jpg -> swf (не просто вопрос!!!)

For PHP 4.0.8 I had function that converted .jpg in .swf
-----------------
Ming_setScale(20);
$fp = fopen($dram,"r");
$end=10000000;
$i = fread($fp,$end);
$img = new SWFBitmap($i);
fclose($fp);

$m = new SWFMovie();
$m->setDimension(100,100);
$m->add($img);
$m->save("myURL/movie.swf");
ImageDestroy($new);
----------------------------
But when I install PHP 4.1.1 function stops working on string $img = new SWFBitmap($i);
and return "Sorry, can't tell what type of file яШяа is in ".
I didn't change anything!
I really need help in this!