Re: [PHP] GD2

2006-09-07 Thread Kyle
It could be that the PHP you are using for testing does not have GD support (whoever packaged it didn't have it compiled in). The quick way to check would be a quick phpinfo() script. That should at least give you somewhere to start. Kyle Steve Marquez wrote: > Does anyone know anything about t

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
John Nichel wrote: tedd wrote: Here's my take -- gif's are no longer supported by the GD library because of patent problems. So development of how to deal with them has been moved to png. Untrue. GIF images *are* supported by the GD library. They were briefly taken out, but the support w

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread tedd
tedd wrote: Here's my take -- gif's are no longer supported by the GD library because of patent problems. So development of how to deal with them has been moved to png. Untrue. GIF images *are* supported by the GD library. They were briefly taken out, but the support was re-enabled in v2.

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread John Nichel
tedd wrote: Here's my take -- gif's are no longer supported by the GD library because of patent problems. So development of how to deal with them has been moved to png. Untrue. GIF images *are* supported by the GD library. They were briefly taken out, but the support was re-enabled in v2.

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
tedd wrote: Based on the area increase; I'd expect the file size to about double, not be 4x as large. $src_img = imagecreatefromgif($filename); $dest_img = imagecreatetruecolor($new_width, $new_height); Can anyone explain or have a solution? Here's my take -- gif's are no longer supported b

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread tedd
Based on the area increase; I'd expect the file size to about double, not be 4x as large. $src_img = imagecreatefromgif($filename); $dest_img = imagecreatetruecolor($new_width, $new_height); Can anyone explain or have a solution? Here's my take -- gif's are no longer supported by the GD libr

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al
Jochem Maas wrote: Al wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about dou

Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Jochem Maas
Al wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as l

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
John Nichel wrote: Al wrote: Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect t

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread John Nichel
Al wrote: Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to abou

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Al
Philip Hallstrom wrote: I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double,

Re: [PHP] GD2 gif resizing problem

2006-03-15 Thread Philip Hallstrom
I'm trying to resize GIF images and up with very large files For example: Original width = 720 New width = 980 Original height = 1008 New height = 1274 Original filesize = 80kb After resizing = 235kb Based on the area increase; I'd expect the file size to about double, not be 4x as large. $sr

Re: [PHP] GD2 Question

2005-11-30 Thread Jochem Maas
Ciprian Constantinescu wrote: Not efficient, because the actual size on the disk depends on the filesystem. I don't think you can find out before writing it to the disk excuse me but: 1. the OP asked for the size of the file, not the number of bytes it takes up on disk (which are eaten up in f

Re: [PHP] GD2 Question

2005-11-30 Thread Ciprian Constantinescu
Not efficient, because the actual size on the disk depends on the filesystem. I don't think you can find out before writing it to the disk "Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Karuna wrote: > > Hi. Is possible to calculate the filesize of image that will resu

Re: [PHP] GD2 Question

2005-11-30 Thread Jochem Maas
Karuna wrote: Hi. Is possible to calculate the filesize of image that will result from using imagejpeg without actually writing to disk? Thanks :) something like (although its not very efficient, I think): ob_start(); image_jpeg($im); // $im is an GD resource $data = ob_get_contents(); ob_en

Re: [PHP] Gd2 & Fonts

2004-07-23 Thread Jason Wong
On Friday 23 July 2004 14:37, Alexandru Boulescu wrote: > I'm a newbie to linux and I have a question related to gd2 and ttf fonts > under this operating system. > > I hava a php script that writes a text on a picture using functions like > and i don't know how and where to install ttf fonts for t

Re: [PHP] GD2 Fonts

2003-11-28 Thread Jason Wong
On Friday 28 November 2003 15:33, Catalin Trifu wrote: > Fonts, > > I am trying to use imageloadfont($PATH_TO_FONT . '/arial.ttf'); on a > windowze > machine. It fails without any error message. > Now, the font I use is the one from the windows Fonts/ dir. > I have also installe

Re: [PHP] GD2 makes black thumbnails

2003-07-21 Thread Marek Kilimajer
Use imagecreatetruecolor() instead of imagecreate() Jiří Němec wrote: hello everyone, i have got a question about creating thumbnails from original JPG files. users upload their own pohotos in JPG format to server, and system makes a thumbnails. these thumbnails are sometime black. probably ther

RE: [PHP] GD2 Bundled with PHP v 4.3.2

2003-05-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Dave O Keeffe [mailto:[EMAIL PROTECTED] > Sent: 29 May 2003 15:28 > > I read in the ChangeLog for v4.3.2 that GD2 is bundled with > this release. I > downloaded and installed the Windows Installer version but my sample > imagecreate code still doesn't work,