Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: GD problem. php

  1. #21

    Default Re: GD problem. php


    Quote Originally Posted by ondoy View Post
    naa daghan,aria lngko sko cubicle
    sir ondoy ask ako amigo where ka work adtoon ka nya sa imong cube

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

    Default Re: GD problem. php

    Quote Originally Posted by ondoy View Post
    hehe naa bro.
    - kini nga lines:
    $watermark_width = imagesx( $watermark );
    $watermark_height = imagesy( $watermark );

    error ani ky ang e accept sa imagesx() ky resource,ang imo gi pasa ky boolean.

    - pwede mnka sugod lngsa ginagmay lngsa ayaw e dungan.try ni sa php manual nko ni gi kuha:
    <?php
    function LoadJpeg($imgname)
    {
    /* Attempt to open */
    $im = @imagecreatefromjpeg($imgname);

    /* See if it failed */
    if(!$im)
    {
    /* Create a black image */
    $im = imagecreatetruecolor(150, 30);
    $bgc = imagecolorallocate($im, 255, 255, 255);
    $tc = imagecolorallocate($im, 0, 0, 0);

    imagefilledrectangle($im, 0, 0, 150, 30, $bgc);

    /* Output an error message */
    imagestring($im, 1, 5, 5, 'Error loading ' . $imgname, $tc);
    }

    return $im;
    }

    header('Content-Type: image/jpeg');

    $img = LoadJpeg('bogus.image');

    imagejpeg($img);
    imagedestroy($img);
    ?>
    bro di man cguro error kai sa akong folder nigawas man jud ang new image w/ a watermark. hehe

  3. #23

    Default Re: GD problem. php

    OT: i made a couple automated watermark feature sa site before -> Cover Photo Shoot | Chris Thomson's

    original photo -> http://www.superdoopermodels.com/wp-...oshoot/122.jpg

    Heads up lang... mejo PG gamay but its not porn its a reality tv show... ok ok ok mejo may pag ka softcore... but its the features ang ako gi share... not the show...

    unya naay security features ni.. nga the photo can be only be viewed with in the site... dili pwede ma share sa lain

    mao ni ako trabaho diri kada adlaw... boring no? sige lang ko atubang ug mga ing-ani
    Last edited by salbahis; 11-29-2012 at 10:16 AM.

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

    Default Re: GD problem. php

    Quote Originally Posted by salbahis View Post
    OT: i made a couple automated watermark feature sa site before -> Cover Photo Shoot | Chris Thomson's

    original photo -> http://www.superdoopermodels.com/wp-...oshoot/122.jpg

    Heads up lang... mejo PG gamay but its not porn its a reality tv show... ok ok ok mejo may pag ka softcore... but its the features ang ako gi share... not the show...

    unya naay security features ni.. nga the photo can be only be viewed with in the site... dili pwede ma share sa lain

    mao ni ako trabaho diri kada adlaw... boring no? sige lang ko atubang ug mga ing-ani
    di lagi makita ang watermark boss?

  5. #25

    Default Re: GD problem. php

    Quote Originally Posted by jairoh_ View Post
    di lagi makita ang watermark boss?
    click the first link mo adto na sa main gallery which is ang kina dak-an nga photo ang naay water mark... then ang thumbnail wala.. kanang image sa ubos ma na ang original nga gigamit both sa thumbnail ug sa naay watermark...

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

    Default Re: GD problem. php

    Quote Originally Posted by salbahis View Post
    click the first link mo adto na sa main gallery which is ang kina dak-an nga photo ang naay water mark... then ang thumbnail wala.. kanang image sa ubos ma na ang original nga gigamit both sa thumbnail ug sa naay watermark...
    can you show us how do you do it?

  7. #27

    Default Re: GD problem. php

    why not use html5 boss for watermark image? mas sayon raman guro ni. hatagan tka og code kung ganahan ka. hehe.

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

    Default Re: GD problem. php

    Quote Originally Posted by Rickstar13 View Post
    why not use html5 boss for watermark image? mas sayon raman guro ni. hatagan tka og code kung ganahan ka. hehe.
    oh pls tnx.

  9.    Advertisement

Page 3 of 3 FirstFirst 123

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