Author Topic: Ugly, aliased thumbnails using Imagemagick & Autothumbnailer.  (Read 3575 times)

0 Members and 1 Guest are viewing this topic.

Offline jaleelb

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.playmouse.com
Ugly, aliased thumbnails using Imagemagick & Autothumbnailer.
« on: October 07, 2002, 06:53:39 AM »
I can't seem to get Imagemagick 5.4.7 to create antialiased thumbnails.

In the image_utils.php file I notice this:

Code: [Select]

function resize_image_im($src, $dest, $quality, $width, $height, $image_info) {
  global $convert_options;

  $command = $convert_options['convert_path']." -quality ".$quality." -antialias -sample $width"."x"."$height \"$src\" \"$dest\"";
  system($command);
  return (file_exists($dest)) ? 1 : 0;


It would seem that the option for antialiasing is on, and based on the sample width and height of the original file.  Yet, Autothumbnailer & Imagemagick produces very ugly aliased files. :? Can someone see what needs changing in the code to fix this, or is it a problem with Imagemagick?

http://zip.to.playmouse/

Offline lutz

  • Addicted member
  • ******
  • Posts: 1.675
    • View Profile
Ugly, aliased thumbnails using Imagemagick & Autothumbna
« Reply #1 on: October 08, 2002, 08:25:57 PM »
hi jaleelb,

exchange "-sample" with "-geometry".

this will solve your problem.

the option "-sample" is not the best command to scale the picture.
Grüße, Lutz
kurze antworten sind nicht unhöflich gemeint, sondern effizient
short answers are not meant rude, but just efficient

Offline jaleelb

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • http://www.playmouse.com
Thank you! Thank you! Thank you! Thank you!!
« Reply #2 on: October 09, 2002, 05:30:03 AM »
:D I've been trying to figure this out for the longest time (and after 1100 pictures posted) :roll:.  Thank you so much!!