Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl
mod_perl and perlMagick Write
 

Index | Next | Previous | View Flat


ngochin at gmail

Jun 30, 2008, 8:37 AM


Views: 434
Permalink
mod_perl and perlMagick Write

Hello all, I'm a newbie with mod_perl so please be patient with me.

I'm working no a very simple image manipulation script using perlMagick. The
script reads an image from file, resizes it, and then serves it up to the
browser using the perlMagick function Write, like this: $pic->Write("jpg:-")

I've tested this script under Apache 2.0 and perl 5.8.8 and it works fine.
But as soon as I run it under mod_perl (using ModPerl::Registry as
perlHandler) the same code will no longer yield the image to the browser.
The header content type is being set correctly to "image/jpg" but after that
the document is 0k.

Are there specific problems of using perlMagick and mod_perl? Or is this an
issue with the way I am attempting to write the image to the browser via
mod_perl? I have tried flushing the buffer in the usual mod_perl way, but to
no avail.

Thanks for your help.

--
View this message in context: http://www.nabble.com/mod_perl-and-perlMagick-Write-tp18198248p18198248.html
Sent from the mod_perl - General mailing list archive at Nabble.com.

Subject User Time
mod_perl and perlMagick Write ngochin at gmail Jun 30, 2008, 8:37 AM
    Re: mod_perl and perlMagick Write ngochin at gmail Jun 30, 2008, 8:48 AM
    Re: mod_perl and perlMagick Write aw at ice-sa Jun 30, 2008, 9:02 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.