4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: jaleelb on October 07, 2002, 06:53:39 AM

Title: Ugly, aliased thumbnails using Imagemagick & Autothumbnailer.
Post by: jaleelb 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/
Title: Ugly, aliased thumbnails using Imagemagick & Autothumbna
Post by: lutz 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.
Title: Thank you! Thank you! Thank you! Thank you!!
Post by: jaleelb 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!!