hi,
my idea is storing a picture into database, then before update trigger a procedure to create thumbnail itself.
is that possible to do this with PerlMagick ? thanks.
How to create a thumbnail using ImageToBlob/BlobToImage ?
Re: How to create a thumbnail using ImageToBlob/BlobToImage
any idea how to store ImageToBlob in database?
since i've try its not work,
anyone can give me some hints ? or actually its won't work? thanks a lot.
since i've try its not work,
Code: Select all
$_TP{new}{thumbnail} = $image->ImageToBlob();
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to create a thumbnail using ImageToBlob/BlobToImage
From my understanding that should work fine, though you may need to set the 'Magick' of the image to select the right image file format other wise it will default to the meta-data saved format of the image read.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: How to create a thumbnail using ImageToBlob/BlobToImage
thanks you for your reply.
could you show me some sample code or any document/example about database ImageToBlod/BlobToImage ? because i'm really new in perlmagick, thanks a lot.
could you show me some sample code or any document/example about database ImageToBlod/BlobToImage ? because i'm really new in perlmagick, thanks a lot.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to create a thumbnail using ImageToBlob/BlobToImage
I have not used it much myself.
An example I believe is on the PerlMagick Web Page
http://imagemagick.org/script/perl-magick.php#blobs
before writing the blobs you should set all the images "magick" attribute to the format wanted.
An example I believe is on the PerlMagick Web Page
http://imagemagick.org/script/perl-magick.php#blobs
before writing the blobs you should set all the images "magick" attribute to the format wanted.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: How to create a thumbnail using ImageToBlob/BlobToImage
thanks your reply, i read the example before, since there're lag of information about database usage.
yes, already define the image "magick" but still fail. please help. thanks a lot.
yes, already define the image "magick" but still fail. please help. thanks a lot.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How to create a thumbnail using ImageToBlob/BlobToImage
Try using a 'magick' coder of TXT with a small image, then print the result.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/