quick imagecreatefromjpeg question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Justin Koivisto

    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 imagecreatefrom jpeg?

    For instance, I used fread to get the contents of a JPEG image, now I
    need to resize. imagecreatefrom jpeg 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

    #2
    Re: quick imagecreatefrom jpeg question

    Justin Koivisto wrote:[color=blue]
    > 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 imagecreatefrom jpeg?
    >
    > For instance, I used fread to get the contents of a JPEG image, now I
    > need to resize. imagecreatefrom jpeg 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}
    >[/color]

    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.

    Comment

    • Andy Hassall

      #3
      Re: quick imagecreatefrom jpeg question

      On Fri, 03 Oct 2003 13:04:21 GMT, Justin Koivisto <spam@koivi.com >
      wrote:
      [color=blue]
      >Justin Koivisto wrote:[color=green]
      >> 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 imagecreatefrom jpeg?
      >>
      >> For instance, I used fread to get the contents of a JPEG image, now I
      >> need to resize. imagecreatefrom jpeg 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}
      >>[/color]
      >
      >For those curious, the answer was no. You have to write out a temp file
      >first.[/color]

      Does imagecreatefrom string not work?

      Comment

      • Justin Koivisto

        #4
        Re: quick imagecreatefrom jpeg question

        Andy Hassall wrote:[color=blue]
        > On Fri, 03 Oct 2003 13:04:21 GMT, Justin Koivisto <spam@koivi.com >
        > wrote:
        >
        >[color=green]
        >>Justin Koivisto wrote:
        >>[color=darkred]
        >>>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 imagecreatefrom jpeg?
        >>>
        >>>For instance, I used fread to get the contents of a JPEG image, now I
        >>>need to resize. imagecreatefrom jpeg 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}
        >>>[/color]
        >>
        >>For those curious, the answer was no. You have to write out a temp file
        >>first.[/color]
        >
        >
        > Does imagecreatefrom string not work?[/color]

        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.

        Comment

        Working...