".$m."
");} ?> Gif Burner free online image optimizer ~ it just looks better upload failed: ".$upfile_name."
\ncouldn't write: tmp/".$ufname."

"); }else echo("

upload failed:: ".$upfile_name.":".$ufname."

"); }else $fdtrue=1; } else include("ripper.htm"); if($fdtrue) // just uploaded, set stat vars for original {if(is_bmp_image($iext)) {$ofname="o_".uniqid("").".bmp";$iext=".bmp"; // if !.gif||!.jpg||!.bmp then convert to bmp system(getcwd()."/../img/convert \"".getcwd()."/tmp/".$ufname."\" ".getcwd()."/tmp/".$ofname); $ufname=$ofname;$ofname=""; } $uufname=$ufname;$loaded=true;$uquality=$oquality=75;//$mhairx=0;$mhairy=0; $mpal="webpal";$bcpal="webpal";$fcpal="webpal";$mfillcolor="color";$mfilltype="replace";$mfuzz=0; $obcvalue="#0000FF";$ofcvalue="#FF0000"; $usize=sprintf("%.2f",($ursize=filesize("tmp/".$ufname))/1024); $owidth=$uwidth=$uuwidth=intval(shell_exec(getcwd()."/../img/identify -format \"%w\" ".getcwd()."/tmp/".$ufname)); $oheight=$uheight=$uuheight=intval(shell_exec(getcwd()."/../img/identify -format \"%h\" ".getcwd()."/tmp/".$ufname)); if($owidth>$MAXW||$oheight>$MAXH||$ursize>$MAXS) {echo("

Invalid size: ".$owidth." x ".$oheight." x ".$usize."k bytes "); echo("exceeds maximum of ".$MAXW." x ".$MAXH." x ".sprintf("%d",$MAXS/1024)."k bytes

"); unset($fdtrue);unset($loaded); } $ubvalue="000000"; $ucolors=intval(shell_exec(getcwd()."/../img/identify -format \"%k\" ".getcwd()."/tmp/".$ufname)); $oncolors=$ucolors;$remethod="Lanczos"; if($iext==".gif") {$oncolors=$ucolors>8?intval(floatval($ucolors/1.5)):$ucolors; $remethod="diversity"; $uframes=explode($ufname,shell_exec(getcwd()."/../gifsicle --color-info ".getcwd()."/tmp/".$ufname)); $uframes=$uframes[1]; if(strstr($uframes," background ")!=false)sscanf(strstr($uframes,"background "),"background %d",$ubcolor);else $ubcolor="none"; if(strstr($uframes,sprintf(" %d: #",$ubcolor))!=false) sscanf(strstr($uframes,sprintf(" %d: #",$ubcolor)),sprintf(" %d: #%%6s ",$ubcolor),$ubvalue); //$uframes=explode(" ",$uframes);sscanf($uframes[11],"[%d]",$ucolors); } $ubvalue="#".$ubvalue;$obvalue=$ubvalue;$ogvalue=$ubvalue; if(isset($iretlink)) {$repost=$_POST; unset($repost["ipageto"]); unset($repost["loaded"]); unset($repost["upfile_name"]); unset($repost["gifburner_x"]); unset($repost["gifburner_y"]); $repost=serialize($repost); } } ?> 0)$ocolors=intval($oncolors); if($ocolors>$ucolors)$ocolors=$ucolors; if($iext==".gif") {if(isset($transform)&&$transform) {$dotransforms.=$transform; if($transform==" --rotate-90"||$transform==" --rotate-270") // transpose x,y axii {$x=$owidth;$owidth=$oheight;$oheight=$x;$x=$cx1;$cx1=$cy1;$cy1=$x;$x=$cx2;$cx2=$cy2;$cy2=$x;} } if($cx1||$cx2||$cy1||$cy2)$dotransforms.=" --crop ".$cx1.",".$cy2."+".$owidth."x".$oheight; if($dotransforms) {$nfname="c_".uniqid("").$iext; system(getcwd()."/../gifsicle".$dotransforms." ".getcwd()."/tmp/".$ufname." -o ".getcwd()."/tmp/".$nfname); if($ufname!=$uufname)@unlink(getcwd()."/tmp/".$ufname); $ufname=$nfname; } if($owidth!=$uwidth||$oheight!=$uheight)$adjsz=" --resize ".sprintf("%dx%d",$owidth,$oheight);else $adjsz=""; if($ocolors<2)$ocolors=2;if($ocolors>256)$ocolors=256; system(getcwd()."/../gifsicle".$adjsz." --no-comments --no-names".(isset($dither)?" --dither ":" ")."--colors ".$ocolors." --color-method ".$remethod." --optimize=2 ".getcwd()."/tmp/".$ufname." --output ".getcwd()."/tmp/".$ofname); //prompt(getcwd()."/../gifsicle".$adjsz." --no-comments --no-names".(isset($dither)?" --dither ":" ")."--colors ".$ocolors." --color-method ".$remethod." --optimize=2 ".getcwd()."/tmp/".$ufname." --output ".getcwd()."/tmp/".$ofname); if(($mhairx&&$mhairy)||isset($pplist)||isset($spread)||isset($solarize)||isset($shade)||isset($raise)||isset($rednoise)||isset($addnoise)||isset($median)||isset($interlace)||isset($implod)||isset($blur)||isset($charcoal)||isset($cycle)||isset($edge)||isset($emboss)||isset($gamma)||isset($gblur)||isset($border)||isset($channel)||isset($frame)||isset($contrast)||isset($wave)||isset($swirl)||isset($paint)||isset($greyscale)) {$dotransforms=""; system(getcwd()."/../gifsicle -U -b ".getcwd()."/tmp/".$ofname); if($mhairx&&$mhairy)if($mfilltype=="colorize")$dotransforms.=" -fill \"".$obvalue."\" -colorize ".$mfuzz; else $dotransforms.=" -fill \"".$obvalue."\" -fuzz ".$mfuzz."%% -draw \"".$mfillcolor." ".$mhairx.",".$mhairy." ".$mfilltype."\""; if(isset($greyscale))$dotransforms.=" -colorspace gray";else $dotransforms.=" -colorspace transparent "; if(isset($pplist))foreach($pplist as $p)$dotransforms.=$p; if(isset($spread))$dotransforms.=" -spread ".$explodex; if(isset($solarize))$dotransforms.=" -solarize ".$solarizex."%%"; if(isset($shade))$dotransforms.=" -shade ".$azimuth."x".$elevation; if(isset($raise))$dotransforms.=" ".$raise."raise ".$raisex."x".$raisex; if(isset($rednoise))$dotransforms.=" -noise ".$rednoisex; if(isset($addnoise))$dotransforms.=" +noise ".$addnoisex; if(isset($median))$dotransforms.=" -median ".$medianx; if(isset($interlace))$dotransforms.=" -interlace ".$interlacex; if(isset($implod))$dotransforms.=" -implode ".$implodx; if(isset($contrast))$dotransforms.=$contrastx; if(isset($blur))$dotransforms.=" -blur ".$blurx; if(isset($charcoal))$dotransforms.=" -charcoal ".$charcoalx; if(isset($cycle))$dotransforms.=" -cycle ".$cyclex; if(isset($edge))$dotransforms.=" -edge ".$edgex; if(isset($emboss))$dotransforms.=" -emboss ".$embossx; if(isset($gamma))$dotransforms.=" -gamma ".$gammax; if(isset($gblur))$dotransforms.=" -gaussian ".$gblurx."x10"; if(isset($border)) {$dotransforms.=" -bordercolor \"".$obcvalue."\" -border ".$borderx."x".$borderx; $owidth+=2*$borderx;$oheight+=2*$borderx; } if(isset($frame)) {$dotransforms.=" -mattecolor \"".$ofcvalue."\" -frame ".$framex."x".$framex."+".$framey."+".$framey; $owidth+=2*$framex;$oheight+=2*$framex; } if(isset($channel))$dotransforms.=" -channel ".$channelx; if(isset($wave))$dotransforms.=" -mattecolor \"".$obvalue."\" -wave ".$wavex."x".$wavey; if(isset($swirl))$dotransforms.=" -swirl ".$swirlx; if(isset($paint))$dotransforms.=" -paint ".$paintx; system(getcwd()."/../img/mogrify -resize ".$owidth."x".$oheight." ".$dotransforms." ".getcwd()."/tmp/".$ofname); //prompt(getcwd()."/../img/mogrify".$dotransforms." ".getcwd()."/tmp/".$ofname); system(getcwd()."/../gifsicle -O2 -b ".getcwd()."/tmp/".$ofname); } } else // else not gif **************** JPEG ********************** {if(isset($dither))$dotransforms.=" -dither"; if(isset($transform)&&$transform) {if($transform==" --rotate-90"||$transform==" --rotate-270") // transpose x,y axii {$x=$owidth;$owidth=$oheight;$oheight=$x;$x=$cx1;$cx1=$cy1;$cy1=$x;$x=$cx2;$cx2=$cy2;$cy2=$x;} if($transform==" --rotate-90")$transform=" -rotate 90"; if($transform==" --rotate-180")$transform=" -rotate 180"; if($transform==" --rotate-270")$transform=" -rotate 270"; if($transform==" --flip-horizontal")$transform=" -flop"; if($transform==" --flip-vertical")$transform=" -flip"; $dotransforms.=$transform; } if($cx1||$cx2||$cy1||$cy2)$dotransforms.=" -crop ".$owidth."x".$oheight."+".$cx1."+".$cy2; else if($owidth!=$uwidth||$oheight!=$uheight)$dotransforms.=" -resize ".$owidth."x".$oheight; system(getcwd()."/../img/convert".$dotransforms." ".getcwd()."/tmp/".$ufname." ".getcwd()."/tmp/".$ofname.".bmp"); $dotransforms=" -depth 8 -colors ".$ocolors." -treedepth 5 -filter ".$remethod." -quality ".$oquality; if(isset($greyscale))$dotransforms.=" -colorspace gray";else $dotransforms.=" -colorspace transparent "; if($mhairx&&$mhairy)$dotransforms.=" -fill \"".$obvalue."\" -fuzz ".$mfuzz."%% -draw \"".$mfillcolor." ".$mhairx.",".$mhairy." ".$mfilltype."\""; if($mfilltype=="colorize")$dotransforms.=" -fill \"".$obvalue."\" -colorize ".$mfuzz; if(isset($pplist))foreach($pplist as $p)$dotransforms.=$p; if(isset($spread))$dotransforms.=" -spread ".$explodex; if(isset($solarize))$dotransforms.=" -solarize ".$solarizex."%%"; if(isset($shade))$dotransforms.=" -shade ".$azimuth."x".$elevation; if(isset($raise))$dotransforms.=" ".$raise."raise ".$raisex."x".$raisex; if(isset($rednoise))$dotransforms.=" -noise ".$rednoisex; if(isset($addnoise))$dotransforms.=" +noise ".$addnoisex; if(isset($median))$dotransforms.=" -median ".$medianx; if(isset($interlace))$dotransforms.=" -interlace ".$interlacex; if(isset($implod))$dotransforms.=" -implode ".$implodx; if(isset($contrast))$dotransforms.=$contrastx; if(isset($blur))$dotransforms.=" -blur ".$blurx; if(isset($charcoal))$dotransforms.=" -charcoal ".$charcoalx; if(isset($cycle))$dotransforms.=" -cycle ".$cyclex; if(isset($edge))$dotransforms.=" -edge ".$edgex; if(isset($emboss))$dotransforms.=" -emboss ".$embossx; if(isset($gamma))$dotransforms.=" -gamma ".$gammax; if(isset($gblur))$dotransforms.=" -gaussian ".$gblurx; if(isset($border)) {$dotransforms.=" -bordercolor \"".$obcvalue."\" -border ".$borderx."x".$borderx; $owidth+=2*$borderx;$oheight+=2*$borderx; } if(isset($frame)) {$dotransforms.=" -mattecolor \"".$ofcvalue."\" -frame ".$framex."x".$framex."+".$framey."+".$framey; $owidth+=2*$framex;$oheight+=2*$framex; } if(isset($channel))$dotransforms.=" -channel ".$channelx; if(isset($wave))$dotransforms.=" -mattecolor \"".$obvalue."\" -wave ".$wavex."x".$wavey; if(isset($swirl))$dotransforms.=" -swirl ".$swirlx; if(isset($paint))$dotransforms.=" -paint ".$paintx; system(getcwd()."/../img/convert".$dotransforms." ".getcwd()."/tmp/".$ofname.".bmp ".getcwd()."/tmp/".$ofname); //prompt(getcwd()."/../img/convert".$dotransforms." ".getcwd()."/tmp/".$ofname.".bmp ".getcwd()."/tmp/".$ofname); } $cx1=0;$cy1=0;$cx2=0;$cy2=0; $uwidth=intval(shell_exec(getcwd()."/../img/identify -format \"%w\" ".getcwd()."/tmp/".$ofname)); $uheight=intval(shell_exec(getcwd()."/../img/identify -format \"%h\" ".getcwd()."/tmp/".$ofname)); $ocolors=intval(shell_exec(getcwd()."/../img/identify -format \"%k\" ".getcwd()."/tmp/".$ofname)); if(isset($repost)) {$repost=stripslashes($repost);$depost=unserialize($repost);echo("
"); $depost["pageto"]="../gifburner/tmp/".$ofname; foreach ($depost as $key => $value)echo("\n"); echo("
"); } ?>
$value)echo("\n"); echo(""); } $osze=@filesize(getcwd()."/tmp/".$ofname);$osize=sprintf("%.2fk",$osze/1024); //echo("
osze=".$osze.":".getcwd()."/tmp/".$ofname."
"); if($ufname!=$uufname)@unlink(getcwd()."/tmp/".$ufname); ?> >Dither 
  Before         Colors  Q     Cropping  T   R  
After           onclick="clickAspect(this);">Aspect    B   L  
 

Error: Unable to open required file(s).

Do not use browser RELOAD, BACK or BOOKMARKs to engage GiF Burner. Press UNDO to get the original if it is still available.

if that fails, use New to start over

GifBurner   Free OnLine Image Manipulation Program

use Browse to select an image on your computer Then hit Upload

or type the address of a web image (or web page) Then hit Upload

Supported Extensions: .gif , .jpg , .jpeg , .bmp , .png, .wmf

or Enter a web page address to get the images it contains.