This is a discussion on quick imagecreatefromjpeg question within the PHP Language forums, part of the PHP Programming Forums category; On my way out the door, but will need to know this in the AM. (and no, I didn't ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On my way out the door, but will need to know this in the AM. (and no, I
didn't have time to RTMF...) Can I use raw data instead of a file patch with imagecreatefromjpeg? For instance, I used fread to get the contents of a JPEG image, now I need to resize. imagecreatefromjpeg is the first step in my routine, but I haven't used the raw data before. Just wondering if anyone else has done this and can point me in the right direction. If this is covered in the manual, just ignore the post (unless you have something to ad). {sorry} -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. |
|
|||
|
Justin Koivisto wrote:
> On my way out the door, but will need to know this in the AM. (and no, I > didn't have time to RTMF...) > > Can I use raw data instead of a file patch with imagecreatefromjpeg? > > For instance, I used fread to get the contents of a JPEG image, now I > need to resize. imagecreatefromjpeg is the first step in my routine, but > I haven't used the raw data before. Just wondering if anyone else has > done this and can point me in the right direction. > > If this is covered in the manual, just ignore the post (unless you have > something to ad). {sorry} > For those curious, the answer was no. You have to write out a temp file first. -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. |
|
|||
|
On Fri, 03 Oct 2003 13:04:21 GMT, Justin Koivisto <spam@koivi.com>
wrote: >Justin Koivisto wrote: >> On my way out the door, but will need to know this in the AM. (and no, I >> didn't have time to RTMF...) >> >> Can I use raw data instead of a file patch with imagecreatefromjpeg? >> >> For instance, I used fread to get the contents of a JPEG image, now I >> need to resize. imagecreatefromjpeg is the first step in my routine, but >> I haven't used the raw data before. Just wondering if anyone else has >> done this and can point me in the right direction. >> >> If this is covered in the manual, just ignore the post (unless you have >> something to ad). {sorry} >> > >For those curious, the answer was no. You have to write out a temp file >first. Does imagecreatefromstring not work? |
|
|||
|
Andy Hassall wrote:
> On Fri, 03 Oct 2003 13:04:21 GMT, Justin Koivisto <spam@koivi.com> > wrote: > > >>Justin Koivisto wrote: >> >>>On my way out the door, but will need to know this in the AM. (and no, I >>>didn't have time to RTMF...) >>> >>>Can I use raw data instead of a file patch with imagecreatefromjpeg? >>> >>>For instance, I used fread to get the contents of a JPEG image, now I >>>need to resize. imagecreatefromjpeg is the first step in my routine, but >>>I haven't used the raw data before. Just wondering if anyone else has >>>done this and can point me in the right direction. >>> >>>If this is covered in the manual, just ignore the post (unless you have >>>something to ad). {sorry} >>> >> >>For those curious, the answer was no. You have to write out a temp file >>first. > > > Does imagecreatefromstring not work? heh, never even thought about looking for other functions to do it... I was modifying a class method that I had previously written to work with files. Oh well... at least I know where to look next time I need to do this, thanks. -- Justin Koivisto - spam@koivi.com PHP POSTERS: Please use comp.lang.php for PHP related questions, alt.php* groups are not recommended. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|