Fw: Apache::GD::Thumbnail Question
Forgive my use of the list if this is a tad OT - but I seem to not be able to contact Steven directly all of the sudden (my ISP got but on a RBL, I think, and it will take them another bit to get off - that's why it took so long, Steven) Issac > > On Tue, 2003-03-25 at 00:12, Issac Goldstand wrote: > > > - Original Message - > > .. > > > >From the man page: > > > "* ThumbnailBaseDir > > > Sets the directory that contains the images to be thumbnailed. Defaults > to > > > ".." if not specified" > > > > > > Since the virtual directory /home/me/pics/thumbs/../ is where the > pictures > > > are (eg, /home/me/pics), I can use the default. > > > > > .. > > > Why don't you show me your exact configuration, and I'll see if I can > help > > > you out... > > > > > > Issac > > > > > > > .. > > > > Hey Issac, > > > > Ok, I've dumbed this down to the lowest common denominator ( in this > > case, I qualify as this ). In my httpd.conf I have the following lines: > > > > Alias /pics/ "/data/httpd/htdocs/image1/pics/" > > > > Order allow,deny > > AllowOverride None > > Order allow,deny > > Allow from all > > > > > > > SetHandler perl-handler > > PerlHandler Apache::GD::Thumbnail > > PerlSetVar ThumbnailMaxSize 75 > > Why are you using /image1/pics/ for the thumbnails and /pics/ for the pictures? I would use: for the location block and then in the HTML. See if that helps matters... > > In my script source I have the following line: > > > > $r->print (' > src="/image1/pics/thumbs/roses.jpg"> > > > > I have tried this with the PerlSetVar ThumbnailBaseDir set to the > > Location, No - ThumbnailBaseDir, would you want to set it, should be set to "/data/httpd/htdocs/image1/pics/" > > with PerlModule Apache::GD::Thumbnail you still need this (or "use Apache::GD::Thumbnail;" in mod_perl_start.pl) > >, with the OBJECT tag > > instead of the IMG tag no - you want IMG > >and they all yield the same 404 Not Found error. > > > > At this point I think that I'm probably missing something really stupid, > > considering I am following the man page to the letter. The only thing > > missing from the man page is any example of HTML/script usage but that > > looks to me as really basic - access the URL and the handler takes over. > > > > Any suggestions would be appreciated. > > > > Steve > > -- > > Steven A. Adams <[EMAIL PROTECTED]> > > >
Re: Apache::GD::Thumbnail Question
Any word on this Issac? Are you as stumped as I am? I dug into it again today and verified that the jpeg, png and freetype2 libraries were installed and verified that they functioned. I also did a complete rebuild of GD and a CPAN force install on Apache::GD::Thumbnail - all went well with no errors or warnings ( all for not though, it still refuses to work ). On Tue, 2003-03-25 at 18:34, Steven A. Adams wrote: > On Tue, 2003-03-25 at 00:12, Issac Goldstand wrote: > > - Original Message - > .. > > >From the man page: > > "* ThumbnailBaseDir > > Sets the directory that contains the images to be thumbnailed. Defaults to > > ".." if not specified" > > > > Since the virtual directory /home/me/pics/thumbs/../ is where the pictures > > are (eg, /home/me/pics), I can use the default. > > > .. > > Why don't you show me your exact configuration, and I'll see if I can help > > you out... > > > > Issac > > > > .. > > Hey Issac, > > Ok, I've dumbed this down to the lowest common denominator ( in this > case, I qualify as this ). In my httpd.conf I have the following lines: > > Alias /pics/ "/data/httpd/htdocs/image1/pics/" > > Order allow,deny > AllowOverride None > Order allow,deny > Allow from all > > > SetHandler perl-handler > PerlHandler Apache::GD::Thumbnail > PerlSetVar ThumbnailMaxSize 75 > > > In my script source I have the following line: > > $r->print (' src="/image1/pics/thumbs/roses.jpg"> > > I have tried this with the PerlSetVar ThumbnailBaseDir set to the > Location, with PerlModule Apache::GD::Thumbnail, with the OBJECT tag > instead of the IMG tag and they all yield the same 404 Not Found error. > > At this point I think that I'm probably missing something really stupid, > considering I am following the man page to the letter. The only thing > missing from the man page is any example of HTML/script usage but that > looks to me as really basic - access the URL and the handler takes over. > > Any suggestions would be appreciated. > > Steve -- Steven A. Adams <[EMAIL PROTECTED]>
Re: Apache::GD::Thumbnail Question
On Tue, 2003-03-25 at 18:34, Steven A. Adams wrote: > On Tue, 2003-03-25 at 00:12, Issac Goldstand wrote: > > - Original Message - > .. > > >From the man page: > > "* ThumbnailBaseDir > > Sets the directory that contains the images to be thumbnailed. Defaults to > > ".." if not specified" > > > > Since the virtual directory /home/me/pics/thumbs/../ is where the pictures > > are (eg, /home/me/pics), I can use the default. > > > .. > > Why don't you show me your exact configuration, and I'll see if I can help > > you out... > > > > Issac > > > > .. > > Hey Issac, > > Ok, I've dumbed this down to the lowest common denominator ( in this > case, I qualify as this ). In my httpd.conf I have the following lines: > > Alias /pics/ "/data/httpd/htdocs/image1/pics/" > > Order allow,deny > AllowOverride None > Order allow,deny > Allow from all > > > SetHandler perl-handler > PerlHandler Apache::GD::Thumbnail > PerlSetVar ThumbnailMaxSize 75 > > > In my script source I have the following line: > > $r->print (' src="/image1/pics/thumbs/roses.jpg"> > > I have tried this with the PerlSetVar ThumbnailBaseDir set to the > Location, with PerlModule Apache::GD::Thumbnail, with the OBJECT tag > instead of the IMG tag and they all yield the same 404 Not Found error. > > At this point I think that I'm probably missing something really stupid, > considering I am following the man page to the letter. The only thing > missing from the man page is any example of HTML/script usage but that > looks to me as really basic - access the URL and the handler takes over. > > Any suggestions would be appreciated. > > Steve Oh yeah... This is running under Apache 1.3.27 and mod_perl 1.27. -- Steven A. Adams <[EMAIL PROTECTED]>
Re: Apache::GD::Thumbnail Question
On Tue, 2003-03-25 at 00:12, Issac Goldstand wrote: > - Original Message - .. > >From the man page: > "* ThumbnailBaseDir > Sets the directory that contains the images to be thumbnailed. Defaults to > ".." if not specified" > > Since the virtual directory /home/me/pics/thumbs/../ is where the pictures > are (eg, /home/me/pics), I can use the default. > .. > Why don't you show me your exact configuration, and I'll see if I can help > you out... > > Issac > .. Hey Issac, Ok, I've dumbed this down to the lowest common denominator ( in this case, I qualify as this ). In my httpd.conf I have the following lines: Alias /pics/ "/data/httpd/htdocs/image1/pics/" Order allow,deny AllowOverride None Order allow,deny Allow from all SetHandler perl-handler PerlHandler Apache::GD::Thumbnail PerlSetVar ThumbnailMaxSize 75 In my script source I have the following line: $r->print (' I have tried this with the PerlSetVar ThumbnailBaseDir set to the Location, with PerlModule Apache::GD::Thumbnail, with the OBJECT tag instead of the IMG tag and they all yield the same 404 Not Found error. At this point I think that I'm probably missing something really stupid, considering I am following the man page to the letter. The only thing missing from the man page is any example of HTML/script usage but that looks to me as really basic - access the URL and the handler takes over. Any suggestions would be appreciated. Steve -- Steven A. Adams <[EMAIL PROTECTED]>
Re: Apache::GD::Thumbnail Question
It does work - I use it on http://pics.beamartyr.net/ Remember that it's a tricky sorta configuration - you must configure it within a location block which will be the "thumbnail directory", and specify the real source directory: Example: The below configuration maps /home/me/pictures to http://foo.bar/pictures/ and generates on-the-fly thumbnails in http://foo.bar/pictures/mythumbs/ Alias /pictures/ /home/me/pictures Order allow,deny Allow from all SetHandler perl-handler PerlHandler Apache::GD::Thumbnail Remember that it only works on JPEGs. Issac - Original Message - From: "Steven A. Adams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 24, 2003 3:06 AM Subject: Apache::GD::Thumbnail Question > Does anyone use this handler to make on-the-fly thumbs? I've used the > standard example code in my apache (1.3.27 with MP1) and it seems to > ignore the handler. > > Any suggestions? > > > -- > Steven A. Adams <[EMAIL PROTECTED]> >
Apache::GD::Thumbnail Question
Does anyone use this handler to make on-the-fly thumbs? I've used the standard example code in my apache (1.3.27 with MP1) and it seems to ignore the handler. Any suggestions? -- Steven A. Adams <[EMAIL PROTECTED]>