Current time: 07-04-2024, 10:12 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[ERLEDIGT] PHP und GD Library bundled (Debian Lenny)
Author Message
EloKoN Offline
Junior Member
*

Posts: 18
Joined: May 2009
Reputation: 0
Post: #1
[ERLEDIGT] PHP und GD Library bundled (Debian Lenny)
Hallo,

weiß jemand, wie ich die GD Library bundled mit PHP bekommen? Mir sollen Funktionen wie imagefilter() zur Verfügung stellen. Die Anleitung hier im Forum (php-cgi) für GD Library Bundled hat mir nicht geholfen, außerdem ist sie veraltet.

LG, EloKoN
(This post was last modified: 04-18-2010 04:58 PM by ZooL.)
05-16-2009 04:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #2
RE: ispCP: PHP und GD Library bundled (Debian Lenny)
Hast du mal das Paket
Code:
php5-gd

installiert?
05-16-2009 07:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
EloKoN Offline
Junior Member
*

Posts: 18
Joined: May 2009
Reputation: 0
Post: #3
RE: ispCP: PHP und GD Library bundled (Debian Lenny)
Natürlich.
05-16-2009 07:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
FraggDieb Offline
Member
***

Posts: 252
Joined: Feb 2008
Reputation: 0
Post: #4
RE: ispCP: PHP und GD Library bundled (Debian Lenny)
*Push* Gibts was neues? Ein Kunde braucht die Funktion imagefilter()
Bin gerade bisschen was verwirrt...
php5-gd ist installiert..
04-18-2010 01:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #5
RE: ispCP: PHP und GD Library bundled (Debian Lenny)
steht sie irgendwo in der php.ini als disable ? ; davor oder was sagt php_info dazu

mfg
04-18-2010 03:32 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #6
RE: ispCP: PHP und GD Library bundled (Debian Lenny)
php5-gd bundled ist automatisch mit ispCP installiert. Schau doch einfach mit phpinfo(); nach.

http://php.net/manual/de/function.imagefilter.php

btw: Der Thread vorher ist fast 1 Jahr alt. Was soll es da neues geben??
(This post was last modified: 04-18-2010 10:50 AM by gOOvER.)
04-18-2010 10:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZooL Offline
Moderator
*****
Moderators

Posts: 3,429
Joined: Jan 2007
Reputation: 79
Post: #7
RE: ispCP: PHP und GD Library bundled (Debian Lenny)
einzige frage noch php-gd in der /etc/php5/conf.d aktiviert ? steht die datei dran drin die .ini ?
ich glaube das captcha von ispcp greift auch darauf zurück...

mfg
04-18-2010 12:08 PM
Visit this user's website Find all posts by this user Quote this message in a reply
FraggDieb Offline
Member
***

Posts: 252
Joined: Feb 2008
Reputation: 0
Post: #8
RE: [ERLEDIGT] PHP und GD Library bundled (Debian Lenny)
"The filters described here were written for the PHP-bundled build of GD, and may not be available in other releases. "
http://www.tuxradar.com/practicalphp/11/2/15

In der conf.d von php5 steht die gd.ini drin.
Er sacht aber:
Quote:function imagegreyscale(&$img, $dither=1) {
if (!($t = imagecolorstotal($img))) {
imagetruecolortopalette($img, $dither, 256);
$t = imagecolorstotal($img);
}
for ($c = 0; $c < $t; $c++) {
$col = imagecolorsforindex($img, $c);
$min = min($col['red'],$col['green'],$col['blue']);
$max = max($col['red'],$col['green'],$col['blue']);
$r= $g= $b= ($max+$min)/2;
imagecolorset($img, $c, $r, $g, $b);
}
}

und

if (function_exists('ImageFilter')) {
ImageFilter($thumb, IMG_FILTER_GRAYSCALE);
} else {
imagegreyscale($thumb);
}

provisorisch gelöst jedoch frisst die funktion natürlich mehr leistung aber die bilder werden ja gecached, trotzdem nciht schön aber funktioniert Big Grin
Problematisch?
04-19-2010 05:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)