Venom89
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Image functions and filenames.
in PHP Coding Help
Posted
Hey everyone.
Having a little bit of trouble with using the php image functions and using images I have retrieved from my images database.
Basically I am pulling out an image from the database and trying to resize it to fit my needs. Here is the signature of my function:
function getImage($image_src, $imageType, $newWidth, $newHeight)
Where $image_src is the image data itself.
My problem is that most of the image functions files (e.g. imagecreatefromjpeg) require a filename as a parameter, not the image data itself. Is there any way around this?