#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    30
    Rep Power
    15
    Is is possible to use straight up binary picture data pulled from a MySQL database in substitute for the "real" image that this funciton below wants? THANK YOU!


    $original = ImageCreateFromGif($img_path);

    $original_width = ImageSX($original);
    $original_height = ImageSY($original);
    $thumb_width = 40;
    $thumb_height = 40;

    $thumbnail = ImageCreate($thumb_width, $thumb_height);

    ImageCopyResized ($thumbnail, $original, 0, 0, 0, 0, $thumb_width, $thumb_height, $original_width, $original_height);

  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    4
    Rep Power
    0
    I don't know if that would work....but I'm slightly interested in WHY you'd wanna do that. WHy not just store the file name in the database......or are you trying to do something really spanktastic and 'tricky'?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    30
    Rep Power
    15
    spanktastic and tricky might be the key. I want the ability to manipulate the data any way possible. I'm getting closer. Right now i'm running into a problem with imagecreate() I think once I get that working I will have it licked. I am currently getting

    Call to undefined function: imagecreate()

Similar Threads

  1. SQL Server image data type
    By cf_greg in forum ColdFusion Development
    Replies: 5
    Last Post: October 18th, 2006, 09:01 PM
  2. data manipulation in mysql
    By dbosz in forum MySQL Help
    Replies: 0
    Last Post: February 1st, 2004, 08:34 PM
  3. php image manipulation HELP!
    By slee in forum PHP Development
    Replies: 1
    Last Post: January 30th, 2004, 09:06 PM
  4. How to show BLOB image data from PHP
    By celebx in forum PHP Development
    Replies: 1
    Last Post: January 28th, 2004, 02:05 PM
  5. my comp sux lately , need help from pro's
    By Hykinsel007 in forum Windows Help
    Replies: 2
    Last Post: January 5th, 2004, 01:52 PM

IMN logo majestic logo threadwatch logo seochat tools logo