![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: May 2004
Location: New Jersey
Posts: 1,532
|
ImageMagick thumbnails
Has anyone successfully used "convert" to thumbnail a large jpg while maintaining the aspect ratio so that the output isn't blurry/shitty?
__________________
Free Adult Blog Hosting http://www.waqn.com ![]() free porn www.mojohost.com - Best guys, best host. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
I'm not sure what you mean by "blurry / shitty", but I've used ImageMagick for a number of projects and the thumbs seem to turn out file.
What I first did is figure out if the image is landscape or portrait, then resize the image. After I resize it, I then crop it to a thumbnail. I apologize for the random PHP code below, but it's what I've been using for ImageMagick with PHP to batch images, for example: Code:
//-- original image list($width,$height,$type,$attr) = getimagesize($curLgFile); //-- thumbnail sizes $mdW = '285'; // medium width $mdH = '244'; // medium height // figure out aspect if($width > $height) // landscape { $width = $width * ($mdH / $height); $height = $mdW; } else { $height = $height * ($mdW / $width); $width = $mdW; } // convert the LARGE image into smaller in the MEDIUM directory $bcmd = $imagemagick_path.'convert -resize '.ceil($width).'x'.ceil($height).' ' .$curLgFile.' '.$newMdFile; system($bcmd,$output); // then crop the medium to what we want $bcmd = $imagemagick_path.'convert -crop '.$mdW.'x'.$mdH.'+0+0 ' .$newMdFile.' '.$newMdFile; system($bcmd,$output);
__________________
Your post count means nothing. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Porn Meister
Industry Role:
Join Date: Feb 2005
Posts: 16,443
|
Does it have a "sharpen" filter? Try sharpening it mildly maybe.
__________________
43-922-863 Shut up and play your guitar. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Feb 2003
Location: CheapAssDesigns.com
Posts: 1,874
|
Quote:
Best to play with it a bit ![]()
__________________
CheapAssDesigns.com - when you need quality designs at affordable prices. icq: 230-729-205 info |at| cheap ass designs dot com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |