Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: GD problem. php

  1. #1
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465

    Default GD problem. php


    mga boss, nganu di ma.view akong mga hinimo na images or watermarked images gamit ang GD, enabled man unta ingon sa phpinfo pero nganung gamai raman na square ang makita? wamp ako gamit. anyone can help tnx.

  2. #2

    Default Re: GD problem. php

    pangetaa ni saimo php.ini, e uncomment extension=php_gd2.dll

  3. #3
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465

    Default Re: GD problem. php

    Quote Originally Posted by ondoy View Post
    pangetaa ni saimo php.ini, e uncomment extension=php_gd2.dll
    unsaon boss? dba tang.tangon ra ang semicolon before ana? tang2x naman daan.

  4. #4

    Default Re: GD problem. php

    ic..try daw create ug info file.
    <?php
    phpinfo();
    ?>

    din tanawa if naa ba nka lista nga GD

  5. #5
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465

    Default Re: GD problem. php

    naa boss. latest version ni ako wamp. mao ni


    gd

    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.4.6
    T1Lib Support enabled
    GIF Read Support enabled
    GIF Create Support enabled
    JPEG Support enabled
    libJPEG Version 6b
    PNG Support enabled
    libPNG Version 1.2.46
    WBMP Support enabled
    XBM Support enabled

  6. #6

    Default Re: GD problem. php

    try dawni bro,knang image nga box gamay ny link ana.copy and paste daw ang link unya e paste sa lain tab.bsin naa ny error

  7. #7
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465

    Default Re: GD problem. php

    no error bro. tsk. saon mani oe. been restarting my wamp pero nothing happes. ka.wierd ani oe. lol

  8. #8

    Default Re: GD problem. php

    last nani saimo php.ini e display_errors = On

  9. #9

    Default Re: GD problem. php

    sakto imu code?
    <img src="<?=$your_image?>" alt"" />

  10. #10
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465

    Default Re: GD problem. php

    Quote Originally Posted by ondoy View Post
    last nani saimo php.ini e display_errors = On
    on man cya boss

    Quote Originally Posted by anonymousprogrammer2012 View Post
    sakto imu code?
    <img src="<?=$your_image?>" alt"" />
    mao ni akong codes
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    	<!--- Email:<img src = "generate.php?email=jairohtuada@gmail.com"/> -->
    	<img src = "generate.php?source=gd.jpg"/>
    	<?php 
    	  echo phpinfo();
    	?>
    </body>
    </html>
    and
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    	<?php
    		//watermarking images
    		header( 'Content-type: image/jpeg' );
    		
    		if( isset( $_GET[ 'source' ] ) ){
    			$source = $_GET[ 'source' ];
    			
    			$watermark = imagecreatefrompng( 'watermark.png' );
    			$watermark_width = imagesx( $watermark );
    			$watermark_height = imagesy( $watermark );
    			
    			
    			$image = imagecreatetruecolor( $watermark_width, $watermark_height );
    			$image = imagecreatefromjpeg( $source );
    			
    			$image_size = getimagesize( $source );
    			$x = $image_size [ 0 ] - $watermark_width - 10;
    			$y = $image_size [ 1 ] - $watermark_height - 10;
    			
    			imagecopymerge( $image, $watermark, $x, $y, 0, 0, $watermark_width, $watermark_height, 20 );
    			
    			//put the image into the page
    			//imagejpeg( $image );
    			
    			//
    			imagejpeg( $image, $source.'.watermarked.jpg' );
    			
    		}
    		 
    	?>
    	
    	
    </body>
    </html>

  11.    Advertisement

Page 1 of 3 123 LastLast

Similar Threads

 
  1. For Sale: defective nikon coolpix s210 (Lens error problem)php 500.00w/pic
    By johnjob in forum Other Electronic Devices
    Replies: 1
    Last Post: 10-16-2012, 07:25 AM
  2. Got Java, PHP, C, MySQL problem?
    By abstracted in forum Programming
    Replies: 11
    Last Post: 06-25-2010, 09:36 PM
  3. php problem
    By jerx d great in forum Programming
    Replies: 9
    Last Post: 10-27-2009, 05:48 PM
  4. Problem with PHP MD5 Encryption
    By personalmgt in forum Programming
    Replies: 9
    Last Post: 10-25-2009, 09:53 PM
  5. Counter problem in PHP
    By rusbel in forum Programming
    Replies: 0
    Last Post: 04-08-2007, 11:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top