[pLog-CVS] plog/class/gallery/resizers gallerygdresizer.class.php,1.9,1.10 galleryimagemagickresizer
Brought to you by:
jondaley
From: Oscar R. <phu...@us...> - 2004-03-17 16:33:58
|
Update of /cvsroot/plog/plog/class/gallery/resizers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12901/resizers Modified Files: gallerygdresizer.class.php galleryimagemagickresizer.class.php galleryresizer.class.php Log Message: removed debug stuff Index: gallerygdresizer.class.php =================================================================== RCS file: /cvsroot/plog/plog/class/gallery/resizers/gallerygdresizer.class.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** gallerygdresizer.class.php 14 Mar 2004 13:31:49 -0000 1.9 --- gallerygdresizer.class.php 17 Mar 2004 16:24:26 -0000 1.10 *************** *** 99,103 **** } else { - _debug("here 1<br/>"); $this->img["tinggi_thumb"]=$size; $this->img["lebar_thumb"]=$this->img["lebar"]; --- 99,102 ---- *************** *** 115,119 **** } else { - _debug("here 2<br/>"); $this->img["lebar_thumb"] = $size; $this->img["tinggi_thumb"] = $this->img["tinggi"]; --- 114,117 ---- *************** *** 151,155 **** $fileNoExt = implode( ".", $fileParts ); $fileExt = $fileParts[count($fileParts)-1]; - _debug("fileext=$fileExt<br/>"); if( function_exists("imagecreatetruecolor")) { --- 149,152 ---- *************** *** 169,181 **** //if( $this->_outputMethod == THUMBNAIL_OUTPUT_FORMAT_SAME_AS_IMAGE || $this->_outputMethod == "" ) { if ($fileExt=="jpg" || $fileExt=="jpeg") { - _debug("savign as jpg!<br/>"); $result = @imageJPEG($this->img["des"],"$save",$this->img["quality"]); } elseif ($fileExt=="png") { - _debug("saving as png!"); $result = @imagePNG($this->img["des"],"$save"); } elseif ($fileExt=="gif") { - _debug("saving as gif!"); if( function_exists("imagegif")) { $result = @imageGIF($this->img["des"],"$save"); --- 166,175 ---- Index: galleryimagemagickresizer.class.php =================================================================== RCS file: /cvsroot/plog/plog/class/gallery/resizers/galleryimagemagickresizer.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** galleryimagemagickresizer.class.php 20 Jan 2004 18:44:06 -0000 1.4 --- galleryimagemagickresizer.class.php 17 Mar 2004 16:24:26 -0000 1.5 *************** *** 25,29 **** // run the command $command = $convertPath." -geometry ".$width." x ".$height." ".$this->_image." ".$outFile; ! _debug( "ImageMagick resizer: ".$command ); $cmdOuput = system($command, $retval); --- 25,29 ---- // run the command $command = $convertPath." -geometry ".$width." x ".$height." ".$this->_image." ".$outFile; ! //_debug( "ImageMagick resizer: ".$command ); $cmdOuput = system($command, $retval); Index: galleryresizer.class.php =================================================================== RCS file: /cvsroot/plog/plog/class/gallery/resizers/galleryresizer.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** galleryresizer.class.php 1 Feb 2004 15:19:24 -0000 1.4 --- galleryresizer.class.php 17 Mar 2004 16:24:26 -0000 1.5 *************** *** 109,113 **** $height = DEFAULT_THUMB_HEIGHT; ! _debug("input file = ".$this->_image."<br/>"); // we can get into this 'else' if the image was not stored *or* we do not --- 109,113 ---- $height = DEFAULT_THUMB_HEIGHT; ! //_debug("input file = ".$this->_image."<br/>"); // we can get into this 'else' if the image was not stored *or* we do not *************** *** 125,131 **** $outFile = $fileNoExt.".".$this->_defaultOutputFormat; } ! _debug("outfile = $outFile"); ! _debug("<br/>thumbnail::generate: width:".$width." - height: ".$height."<br/>"); $imgThumb = $generatorClassObject->generate( $outFile, $width, $height ); --- 125,131 ---- $outFile = $fileNoExt.".".$this->_defaultOutputFormat; } ! //_debug("outfile = $outFile"); ! //_debug("<br/>thumbnail::generate: width:".$width." - height: ".$height."<br/>"); $imgThumb = $generatorClassObject->generate( $outFile, $width, $height ); |