![]() |
imagecopyresampled
Hi!
I am coding an image resize script, and I've ran into the following problem: I am using imagecopyresampled to resize it. Then, if, say, it is a jpeg image, then imagejpeg($image) will output the picture. However, if I try saving $image to my database, then retrieving it and imagejpeg-ing it, it tells me that it is a non-valid imagejpeg resource. If I try to print() it, it tells me "Resource id #29"... I assume that $image is a resource, and cannot be just saved. How do I convert it to a normal saveable image? Thanks. |
you have to output the image and catch the outputstring:
PHP Code:
|
Edit: Nevermind, I figured it out already.
Edit2: Oh, thanks Xenon :) I was quicker though. |
All times are GMT. The time now is 03:36 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|