The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
you have to output the image and catch the outputstring:
PHP Code:
|
#3
|
|||
|
|||
Edit: Nevermind, I figured it out already.
Edit2: Oh, thanks Xenon I was quicker though. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|