Re: [PHP] Generating thumbnails from tiff images

2006-05-29 Thread mbneto
by package I mean an external program (outside apache). On 5/25/06, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip] I'd like to use GD instead of ImageMagick beacuse I would not want to install extra packages if I can. [/snip] GD is an extra package.

RE: [PHP] Generating thumbnails from tiff images

2006-05-25 Thread Jay Blanchard
[snip] I'd like to use GD instead of ImageMagick beacuse I would not want to install extra packages if I can. [/snip] GD is an extra package. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating thumbnails from tiff images

2006-05-25 Thread mbneto
Hi, Is this a non documented api? http://www.php.net/manual/en/ref.image.php does not show this. On 5/23/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Mon, May 22, 2006 5:10 pm, mbneto wrote: > I am looking for sample code/class that can generate a thumbnail (can > be a > png/jpeg) image f

Re: [PHP] Generating thumbnails from tiff images

2006-05-25 Thread mbneto
Jay, I am not quite sure if you've made sarcastic comments but to make things more clear... I'd like to use GD instead of ImageMagick beacuse I would not want to install extra packages if I can. When I mentioned that I use convert I said 'when GD is not available...' So I have alternatives: if

Re: [PHP] Generating thumbnails from tiff images

2006-05-23 Thread Richard Lynch
On Mon, May 22, 2006 5:10 pm, mbneto wrote: > I am looking for sample code/class that can generate a thumbnail (can > be a > png/jpeg) image from a tiff image. So far I've only found examples > using > png/jpg/gif as input. In those examples, change the line that reads: imagecreatefromjpeg(...) t

RE: [PHP] Generating thumbnails from tiff images

2006-05-22 Thread Jay Blanchard
[snip] I know the imagemagick tools.  I use convert when I need to perform operations on images and gd is not available.  I'd like an alternative without having to install any extra packages specially that in this case the scripts will be hosted in a win32 machine (windows xp). [/snip] Ah. We

Re: [PHP] Generating thumbnails from tiff images

2006-05-22 Thread mbneto
Hi Jay, I know the imagemagick tools. I use convert when I need to perform operations on images and gd is not available. I'd like an alternative without having to install any extra packages specially that in this case the scripts will be hosted in a win32 machine (windows xp). On 5/22/06, Jay

RE: [PHP] Generating thumbnails from tiff images

2006-05-22 Thread Jay Blanchard
[snip] I am looking for sample code/class that can generate a thumbnail (can be a png/jpeg) image from a tiff image. So far I've only found examples using png/jpg/gif as input. Any tips? [/snip] http://www.imagemagick.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] generating thumbnails

2001-05-23 Thread Dave
So how does the GD2 work.? Does it work with gifs and jpgs? Is the GD Library supposed be installed by the hosting provider? "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > is there any way to resize images in php and save them to a new fil

Re: [PHP] generating thumbnails

2001-05-21 Thread Rasmus Lerdorf
> nahhh, if you're doing a lot of images on a page, doing a system call for > each one would generate entirely too much overhead, imo. > > check out the built-in image manipulation functions in php. > http://www.php.net/manual/en/ref.image.php > > there is a function called ImageCopyResized() whic

Re: [PHP] generating thumbnails

2001-05-21 Thread Rasmus Lerdorf
> is there any way to resize images in php and save them to a new file? > i want to write sort of a (db-powered) picture gallery that automatically > creates thumbnails out of http-uploaded files. It's rather bleeding edge, but if your gra a copy of GD2-beta and a snapshot of PHP (from snaps.php.

Re: [PHP] generating thumbnails

2001-05-21 Thread Shawn Reed
PROTECTED]> Sent: Monday, May 21, 2001 8:31 AM Subject: Re: [PHP] generating thumbnails > Find a good command line programm that does resing and use exec or system to > do the thumbnailing > Fopen >> fwrite >> exec. > > If you are on linux I suggest using NetPBM. &

Re: [PHP] generating thumbnails

2001-05-21 Thread George E. Papadakis
Find a good command line programm that does resing and use exec or system to do the thumbnailing Fopen >> fwrite >> exec. If you are on linux I suggest using NetPBM. - Original Message - From: "Samuel Lüscher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 21, 2001 3:21 P

Re: [PHP] Generating thumbnails of JPEG/GIF images

2001-05-04 Thread Web master
I wrote a small function like the following to create my won thumbnails. function make_tumb_nail($url){ $size=GetImageSize("image/$url"); $ht=$size[1]; $wd=$size[0]; if($ht>$wd){ $h=$ht; for($i=1.01;;){ if($h<121){ break; } $h=$ht/$i; $w=$wd/$i; $i=$i+0.01; }