Reply to Re: getimagesize from a image stored in a blog column

Your name:

Reply:


Posted by Joseph Melnick on 10/10/81 11:17

Hello Craig,

use the GD Library.
use resource imagecreatefromstring ( string image )

here is link to the documentation and an example follows at the end by
shiehj at yahoo dot com
where he takes an image fom his database and creates a thumbnail.

http://ca.php.net/manual/en/function.imagecreatefromstring.php

Joseph Melnick
JM Web Consultants


"Craig Keightley" <dont@spam.me> wrote in message
news:429305b4$0$289$cc9e4d1f@news-text.dial.pipex.com...
> you could try adding two columns in your db for the height and width of
> the image. Retreive the file dimensions on upload and insert them into the
> db
>
> hth
>
> craig
>
> "Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
> news:k8i5919o7her9ntbg9v9k051mup2ohbjj7@4ax.com...
>>I noticed that Message-ID: <42927227$0$17146$a729d347@news.telepac.pt>
>> from ATK contained the following:
>>
>>>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??
>>
>> It would probably be best to get the dimensions and create the thumbnail
>> as the image was uploaded, if possible. These could then be stored in
>> the db.
>>
>> --
>> Geoff Berrow 0110001001101100010000000110
>> 001101101011011001000110111101100111001011
>> 100110001101101111001011100111010101101011
>
>

[Back to original 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

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