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
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 01-07-2006, 12:44 PM   #1
jerzeemedia
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.
jerzeemedia is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-07-2006, 12:55 PM   #2
psili
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);
I'm sure there's always a better way, but the above is just an example.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-07-2006, 01:12 PM   #3
Tom_PM
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.
Tom_PM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-07-2006, 01:26 PM   #4
Broda
Confirmed User
 
Join Date: Feb 2003
Location: CheapAssDesigns.com
Posts: 1,874
Quote:
Originally Posted by PR_Tom
Does it have a "sharpen" filter? Try sharpening it mildly maybe.
...and despeckle. Optionally blur it too to make that crisp and glamourlike look some seem to prefer.
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
Broda is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-07-2006, 01:29 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
manual crop all your thumbs for mgp/tgp ;)
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris 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



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.