Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-12-2002, 12:12 PM   #1
SpaceAce
Confirmed User
 
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
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
SpaceAce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-12-2002, 12:14 PM   #2
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
take a look at nconvert

I've struggled with perlmagic also ..
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-12-2002, 12:45 PM   #3
SpaceAce
Confirmed User
 
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
Thanks, boldy, I'll look into that right away.

Anyone else have some suggestions in case this doesn't work?

SpaceAce
SpaceAce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-12-2002, 12:49 PM   #4
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
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
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-12-2002, 12:52 PM   #5
SpaceAce
Confirmed User
 
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
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
SpaceAce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-12-2002, 12:53 PM   #6
SpaceAce
Confirmed User
 
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
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

Last edited by SpaceAce; 09-12-2002 at 12:57 PM..
SpaceAce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-12-2002, 01:04 PM   #7
SpaceAce
Confirmed User
 
Join Date: Jul 2002
Location: Magrathea
Posts: 6,493
Mystery solved: it's embedded profile information. Just fire this up before saving the image:

$image->Profile(name=>"*");

SpaceAce

Last edited by SpaceAce; 09-12-2002 at 01:12 PM..
SpaceAce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-12-2002, 02:02 PM   #8
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
use php...its easy then
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.