By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,408 Members | 1,576 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,408 IT Pros & Developers. It's quick & easy.

getimagesize from a image stored in a blog column

P: n/a
ATK
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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
See the section in the manual on stream_wrapper_register. The example
VariableStream class should allow you to do what you need.

Jul 17 '05 #2

P: n/a
ATK
Well... i can answer my own question, maybe someone has the same doubt:

http://pt.php.net/manual/en/function...fromstring.php
ATK wrote:
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

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.