quick imagecreatefromjpeg question

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-02-2003
Justin Koivisto
 
Posts: n/a
Default quick imagecreatefromjpeg question

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.

Reply With Quote
  #2 (permalink)  
Old 10-03-2003
Justin Koivisto
 
Posts: n/a
Default Re: quick imagecreatefromjpeg question

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.

Reply With Quote
  #3 (permalink)  
Old 10-03-2003
Andy Hassall
 
Posts: n/a
Default Re: quick imagecreatefromjpeg question

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?

Reply With Quote
  #4 (permalink)  
Old 10-03-2003
Justin Koivisto
 
Posts: n/a
Default Re: quick imagecreatefromjpeg question

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.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0