getimagesize from a image stored in a blog column

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

    getimagesize from a image stored in a blog column

    Hi,

    I have a image stored in a blob column in my db... i know how to
    retrieve it correctly and yes, i need to save it in a blob in the db.

    How can i get the width & height from that image? I was thinking about
    saving it in a temp file and them doing the normal getimagesize but
    that's not the best solution.

    Anyone know how to do it only having the bytes and bits of the image???


    I also have to create thumbnails of that image... any idea??



    thanks in advance,
    ATK
  • Chung Leong

    #2
    Re: getimagesize from a image stored in a blog column

    See the section in the manual on stream_wrapper_ register. The example
    VariableStream class should allow you to do what you need.

    Comment

    • ATK

      #3
      Re: getimagesize from a image stored in a blog column

      Well... i can answer my own question, maybe someone has the same doubt:




      ATK wrote:[color=blue]
      > Hi,
      >
      > I have a image stored in a blob column in my db... i know how to
      > retrieve it correctly and yes, i need to save it in a blob in the db.
      >
      > How can i get the width & height from that image? I was thinking about
      > saving it in a temp file and them doing the normal getimagesize but
      > that's not the best solution.
      >
      > Anyone know how to do it only having the bytes and bits of the image???
      >
      >
      > I also have to create thumbnails of that image... any idea??
      >
      >
      >
      > thanks in advance,
      > ATK[/color]

      Comment

      Working...