Dynamically resize an image

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
Georgezx9
New php-forum User
New php-forum User
Posts: 13
Joined: Mon Mar 31, 2014 1:15 pm

Tue Dec 06, 2016 1:36 pm

Trying to get a picture to appear on screen, resized to a width 128.

Code: Select all

Trying to get a picture to appear on screen, resized to a width 128.

echo '<img src="image.php?img_url=<?=base_64_encode("'.$path.$match["photoname"].'"?>&width=128'>

I get no errors, but no picture appears either
This one works albeit not resized.

echo '<img src="'.$path.$match["photoname"].'" />';

I don't really want to have a directory of already resized thumbnails

VMT

Rustavely
New php-forum User
New php-forum User
Posts: 7
Joined: Mon Dec 05, 2016 12:26 pm

Fri Dec 09, 2016 3:06 am

Please show your image.php script.

Post Reply