On Fri, 1 May 2009 14:15:40 +0530
Shibu P U <[email protected]> wrote:

| Images
| 
| [image: problem.jpg][image: correct.jpg]
| Program
| 
| #!/usr/bin/perl
| 
| use Image::Magick;
| 
| my $image = Image::Magick->new(size=>'250x250', quality=>100);
| 
| $image->Read('xc:white');
| 
| $image->Annotate(text=>'ABCDEFGHI', font=>'city_burn.ttf', pointsize=>50,
| fill=>'#000000', gravity=>'NorthWest', x=>5, y=>5);
| 
| $image->Write('test.jpg');
| 
| Regards
| Shibu P U
| 
The differences look to be aliasing handling by the two systems, and is
probably caused by a difference in the freetype delegate library. This
is the software that actually does the rendering of a font into a
raster image. I doubt their is very much that can be done on the IM side.

I suggest you look at the versions of the freetype library package
installed, and many see about updating.
 
Fedora 9 is very very much more advanced (bleeding edge) than Centos
which is designed to use older, and stable packages than the latest
version.

For my own information which image was from which system?






| On Fri, May 1, 2009 at 10:49 AM, Anthony Thyssen
| <[email protected]>wrote:
| 
| > On Fri, 1 May 2009 09:50:38 +0530
| > Shibu P U <[email protected]> wrote:
| >
| > | Hi
| > |
| > | I am using the Image::Magick perl module to create images using the
| > | "Annotate" function and "city_burn.ttf" font. It is working fine. But I
| > | tried the same code on another server, then the text displayed is having
| > | problems with the font, like there are many dotes scattered around the
| > text.
| > | I used the option 'antialias' also. Still the same result.
| > | We used strace method on both servers and analyzed the differences. But
| > | everything is ok with the installed libraries.
| > |
| > | The differences with the servers are
| > |
| > | Server which the code is running fine:
| > | OS: Fedora 9
| > | Perl: 5.10.0
| > | ImageMagick: 6.3.8
| > |
| > | Server having the problem:
| > | OS: CentOS 5.2
| > | Perl: 5.8.8
| > | ImageMagick: 6.4.8
| > |
| > | I am attaching both the images herewith.
| > | Any other libraries are needed for this module to work fine? Please could
| > | you find out a solution for this.
| > |
| > | Regards
| > | Shibu P U
| >
| > The mail list does not allow attachments, please post a URL to the
| > images if you like others to look at them.
| >
| > In the mean time is the font listed in   convert -list font
| > and try a simplier 'label:' image test
| >
| > For example...
| >  convert -font {font} label:testing  image.png
| >
| > You also do not mention the simplified command line that shows the
| > problem you are having.
| >



  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
   The difference between men and boys, is the price of their toys!
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to