User Profile

Collapse

Profile Sidebar

Collapse
evolozik
evolozik
Last Activity: Jan 15 '07, 05:17 PM
Joined: Jan 4 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • evolozik
    replied to Resize image problem
    in PHP
    hey Ronald
    i figured out something

    if i put the code like this:


    [PHP]
    //some code

    function resizeimage($im ages)
    {
    // Retrieving path
    $filename = $images;
    // Set a maximum height and width
    $width = 100;
    $height = 100;

    // Get new dimensions
    list($width_ori g, $height_orig) = getimagesize($f ilename);

    $ratio_orig...
    See more | Go to post

    Leave a comment:


  • evolozik
    replied to Resize image problem
    in PHP
    i added this part because i want it to display the picture right away
    [php]
    $new=imagejpeg( $image_p, null, 100);
    return $new;
    [/php]

    i understood what is wrong
    using the code below doesn't display the picture but is trying to display the "codes" of the picture
    [php]
    $img=$newRow['picture'];
    echo "<a href=\"test1.ph p\"><img src=resizeimage ($img)...
    See more | Go to post

    Leave a comment:


  • evolozik
    replied to Resize image problem
    in PHP
    no i am not using Image Magick

    i got the tutorial from this website:
    http://www.php.net/manual/en/function.imagec opyresampled.ph p

    the only thing i changed is that i enclosed the code in a function and added the part below so that it retrieves the image and then it resize it using the function before display the picture in <img src...>

    [php]
    $img=$newRow['picture'];
    echo "<a...
    See more | Go to post

    Leave a comment:


  • evolozik
    started a topic Resize image problem
    in PHP

    Resize image problem

    hi everyone
    i need some help please
    i am using PHP5 and i used a tutorial and when i copied the code for Resampling an image proportionally, it worked perfectly
    but when i added it in my page it displayed a lot of "ÿØÿàJFIFÿ þ‡úý<ÿyºÿ&Ïþ <ߗ׏©" characters

    here is what i did:
    [PHP]

    //some code

    function resizeimage($im ages)
    ...
    See more | Go to post
No activity results to display
Show More
Working...