leisure Posted February 16, 2006 Report Share Posted February 16, 2006 (edited) Skriptu, testeshanai panjemu no php.net ... <?php // create a 100*30 image $im = imagecreatetruecolor(100, 30); // white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255); // write the string at the top left imagestring($im, 5, 0, 0, "Hello world!", $textcolor); // output the image header("Content-type: image/jpeg"); imagejpeg($im); ?> // white background and blue text <<< man raada melnu bildi ar ziliem burtiem... iznjeemos visaadi, bet fona krasu newaru nomainit! php griezhu uz windows (phpdev 4.2.3) Edited February 16, 2006 by leisure Link to comment Share on other sites More sharing options...
Delfins Posted February 16, 2006 Report Share Posted February 16, 2006 ja izmanto `imagecreatetruecolor`, tad fons pašam jāaizpilda... Es nezinu vai tas ir bugs vai kas cits, bet ar `truecolor` tā ir... ;) Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 ja izmanto `imagecreatetruecolor`, tad fons pašam jāaizpilda...Es nezinu vai tas ir bugs vai kas cits, bet ar `truecolor` tā ir... ;) tad ar kuru f-ciju man labak njemties lai uztaisitu bildi uz kuras buus teksts? ( njemot wera to ka newar dabut php 430) Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 16, 2006 Report Share Posted February 16, 2006 (edited) peec $bg = imagecolorallocate($im, 255, 255, 255); ieliec imagefill($im, 0, 0, $bg) Viss edit : vai abu rindiju vietaa imagefill($im, 0, 0, 0xFFFFFF); kur FFFFFF ir kraasu kods Heksaa... :) Edited February 16, 2006 by Grey_Wolf Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 tnx, shis aizgaaja, bet rodas akal otra probleema, kaadas bildes tad waram ar php taisit? ar jpeg sanaca uztaisit, bet ar gif nea... + kadas images ir labakais taisit ( pec kvalitates ) ? Link to comment Share on other sites More sharing options...
bubu Posted February 16, 2006 Report Share Posted February 16, 2006 png Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 png un kaa tu komentetu ka gif vispar neiet? Link to comment Share on other sites More sharing options...
bubu Posted February 16, 2006 Report Share Posted February 16, 2006 Kā lai es to zinu, ja tu nemaz nepacenties uzrakstīt ko un kā tu darīji, lai dabūtu to gifu, un kas tieši notikās (jeb nenotikās), kādus errorus/warningus izmeta (ar E_ALL iezslēgtu, protams). Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 Kā lai es to zinu, ja tu nemaz nepacenties uzrakstīt ko un kā tu darīji, lai dabūtu to gifu, un kas tieši notikās (jeb nenotikās), kādus errorus/warningus izmeta (ar E_ALL iezslēgtu, protams). nekaadus errorus neizmeta, paradija tikai paredzetas bildes resolution (100x30) ar tekstu kas ir alt tagaa.. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 16, 2006 Report Share Posted February 16, 2006 leisure--> gif neiet tikai dazaam gdlib versijaam :( tas saistiits saistiits ar licenzeehanu ... vienu briidi tika prastiita par gif atbalstiishanu licenze.... Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 tada gadijumaa es nesaprast! ja png formaats ir labaaks, tad kapec vinji tik dikti sargaa to gif? gif kk ir vienkarshaks tb vieglak veidojams vai kk taa? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 16, 2006 Report Share Posted February 16, 2006 vinjiem (izstraadaataajiem ) vienkaarshi sagribeejaas naudiju ... gif ir pietiekami specefisks .... var veidot animaciju utt... Link to comment Share on other sites More sharing options...
leisure Posted February 16, 2006 Author Report Share Posted February 16, 2006 naudinju jaw visiem gribas! :) bet ar php tak gif animaaciju newar taisit? Link to comment Share on other sites More sharing options...
Delfins Posted February 17, 2006 Report Share Posted February 17, 2006 Nē... Es pat esmu pret GIF-iem... Izmanto png, tam kvalitāte/izmērs daudz labāks... Link to comment Share on other sites More sharing options...
bubu Posted February 17, 2006 Report Share Posted February 17, 2006 Muļķības. Izmēra ziņā mazām bildēm gif'i ieliek png! Un mazām bildēm diez vai vajag vairāk kā 256 krāsas. Link to comment Share on other sites More sharing options...
Recommended Posts