![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 8.06.2004 Skąd: wroclaw Ostrzeżenie: (0%) ![]() ![]() |
Witam Mam banalny problem z umieszczaniem grafiki wygenerowanej przy pomocy funkcji z biblioteki GD pomiedzy znacznikami html. O to kod
<html> <body> <h3>jakis tam tekst 1</h3> [php:1:8ded44f0c5]<?php header("Content-type: image/jpeg"); $img = "./statystyka/percents.jpeg"; $imageA = @ImageCreateFromJpeg($img); $width = 200; $imageB = @ImageCreate($width, 12); ImageCopy($imageB, $imageA, 0, 0, 0, 0, $width, 12); ImageJpeg($imageB); ImageDestroy($imageA); ImageDestroy($imageB); ?>[/php:1:8ded44f0c5] <h3>jakis tam tekst 2</h3> </html> </body> Na forum znalazlem milion przykladow tworzenia obrazow ale ani jednego ktory ilustrowalby umieszczanie go pomiedzy znacznikami html. Prosze wiec o rade i nie zbywanie w stylu: "to juz bylo omawianie na forum" :cry: Dzieki |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 45 Pomógł: 0 Dołączył: 23.03.2004 Skąd: N 50°03 Ostrzeżenie: (0%) ![]() ![]() |
Możesz też spróbować tak:
[php:1:034d01007f]<?php ob_start(); ?> <html> <body> <h3>jakis tam tekst 1</h3> <?php header("Content-type: image/jpeg"); $img = "./statystyka/percents.jpeg"; $imageA = @ImageCreateFromJpeg($img); $width = 200; $imageB = @ImageCreate($width, 12); ImageCopy($imageB, $imageA, 0, 0, 0, 0, $width, 12); ImageJpeg($imageB); ImageDestroy($imageA); ImageDestroy($imageB); ?> <h3>jakis tam tekst 2</h3> </html> </body> <?php ob_end_flush(); ?> [/php:1:034d01007f] chyba... (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 13.10.2025 - 07:08 |