in reply to Thumbnails and Filehandles

Just for discussion, ImageMagick can read from and write to a scalar, it is called ImageToBlob and BlobToImage. The docs for ImageMagick suck, and make this simple function hard to find. In your case, when you upload the file, you could save it to a scalar, print it to file, then use the same scalar blob to make a thumbnail and write it to file, or store the blob directly in the database.

I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: Thumbnails and Filehandles
by davidrw (Prior) on Jul 10, 2005 at 11:32 UTC
    Another option would be to use IO::Scalar to create a filehandle from the scalar and pass that to $image->Read().