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...
User Profile
Collapse
-
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)...Leave a comment:
-
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...Leave a comment:
-
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)
...
No activity results to display
Show More
Leave a comment: