You are here: get image size from binary data « PHP Language « IT news, forums, messages
get image size from binary data

Posted by Christoph Burschka on 06/26/07 07:31

Is there some way to get the dimensions of an image, given the binary
data of the image, without having to write it to a temporary file?

It seems that getimagesize() will only take a filename, but since I have
to download the image from a remote URL with fsockopen(), I have it
stored as a binary string.

I've had a cursory glance at the data, but predictably the size is not
stored in decimal format anywhere...

--
cb

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация