On Tuesday 19 April 2005 14:40, Roman Duriancik wrote:
> Hello,
> Is it possible to convert pictures in gif format to jpg format in php
> script ?
Yes,
Check http://www.php.net/manual/en/ref.image.php
> Thank you for yours responses.
> Roman
--
Cyberly yours,
Petar Nedyalkov
Devoted Orbitel F
Hello,
Is it possible to convert pictures in gif format to jpg format in php
script ?
Thank you for yours responses.
Roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The following code works on Win2K, Apache 1.3.27, PHP 4.3.2
$gif = imagecreatefromgif('image.gif');
$w = imagesx($gif);
$h = imagesy($gif);
$jpg = imagecreate($w, $h);
// or $jpg = imagecreatetruecolor($w, $h); but colors are off
imagecopy($pic, $im, 0, 0, 0, 0, $w, $h);
// or imagecopyresampled($
Yes...
I've tried Image Magic , it's good for my work :)
Now, I can resize/resample/reformat any kind of picture...
thanks for all! :)
"Krzysztof Dziekiewicz" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> > The GD library bundled with PHP 4.3 can read gif images (but
> The GD library bundled with PHP 4.3 can read gif images (but not write them)
And imagejpeg allows to create the jpeg file.
--
Krzysztof Dziekiewicz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The GD library bundled with PHP 4.3 can read gif images (but not write
them)
-Rasmus
On Thu, 7 Nov 2002, BAROILLER Pierre-Emmanuel wrote:
> Hi all,
>
> does anyone know a way to convert a gif file to jpg ?
> I've made a photo album and, want to resize pictures to create thumbnails..
> GD allow r
thanks for all! :)
I'll take a look at this product.
P.E. Baroiller
"Krzysztof Dziekiewicz" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> > does anyone know a way to convert a gif file to jpg ?
> > I've made a photo album and, want to resize pictures to create
thumbnai
> does anyone know a way to convert a gif file to jpg ?
> I've made a photo album and, want to resize pictures to create thumbnails..
> GD allow resizing jpeg files, but not gif files...
> So... how can I create a jpeg file from the gif source ?
> (may be with an external software...) ???
Command
Hi all,
does anyone know a way to convert a gif file to jpg ?
I've made a photo album and, want to resize pictures to create thumbnails..
GD allow resizing jpeg files, but not gif files...
So... how can I create a jpeg file from the gif source ?
(may be with an external software...) ???
Cheers
P
9 matches
Mail list logo