![]() |
If you know anything about PerlMagick/ImageMagick, please have a look
I've written a PERL script to thumbnail pictures for me (auto cropping so I can make all the thumbs the same size without distortion) usin PerlMagick. It works great except for one bizarre problem: when I run the program on this one specific set of pictures I have, the thumbs are huge (filesize). I'm talking 35-45K for thumbnails that are 95x115. So far, I have run the program on three sets of content and only one does this. It doesn't matter if I adjust the quality, either. Quality = 75 or quality = 0, the thumbs are huge.
The script does this: Calculate size for cropping PerlMagick->Crop() PerlMagick->Resize() PerlMagick->Write() I couldn't find any really good mailing lists for this question and since it's porn-related, I thought I'd ask here. I appreciate any help. SpaceAce |
take a look at nconvert
I've struggled with perlmagic also .. |
Thanks, boldy, I'll look into that right away.
Anyone else have some suggestions in case this doesn't work? SpaceAce |
ya use convert .... just doing a project now actually where i need it, but if anyone can tell me how to stop the premature header errors from convert i'd owe ya.
btw, i dont use the perl modules for them, i just use system calls.. `convert origfile -geometry 75x75+0+0 thumbfile`; mike |
I didn't see the functions I wanted available from command-line convert which is why I went with PerlMagick. Also, I am thinking of adding thumbnailing capability to AVS Weasel, which also means PERL.
SpaceAce |
Actually, there does seem to be more functions in this newer version I installed. Let's see if it makes smaller thumbnails.
[Later...] The answer is "no". Still produces great big honkin' thumbnalils :( SpaceAce |
Mystery solved: it's embedded profile information. Just fire this up before saving the image:
$image->Profile(name=>"*"); SpaceAce |
use php...its easy then
|
All times are GMT -7. The time now is 08:09 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123