Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3932920
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:32:35+00:00 2026-05-19T23:32:35+00:00

I have ImageMagick installed on my CentOS linux server. I am trying to get

  • 0

I have ImageMagick installed on my CentOS linux server.

I am trying to get ImageMagick to convert unicode (non-roman) fonts to an image.
I am able to do this with roman/Latin based fonts but not non-latin such as chinese.

EDIT* When I try to convert non-latin fonts they show up as garbage such as %$??W*??

I have installed unicode fonts on my system and update the ImageMagick type.xml file to
reflect this (i have update my locate db as well).

when I run (in my shell):# identify -list Type

I can see that my fonts are installed and that ImageMagick sees them but they (non-latin fonts) still do not work when I run my text-to-image conversion php script

I have checked out another article relating to this :
Make ImageMagick recognize a font

But after doing everything there I still have the same problem.
Please help.

Thanks.

EDIT:
This is the some code related to imagemagick initialization:

            $font = 'UNICODE.TTF';  
    /* Create imagickdraw object */
    $draw = new ImagickDraw();
    $draw->setFont($font);
    $draw->setStrokeAntialias(true);
    $draw->setTextAntialias(true);
            $draw->setFontSize(100);
            $draw->setTextEncoding("UTF-8");

          //and than there is a bunch of code I use to manipulate the image shadow etc.

UPDATE
Since receiving help via the comments to this post I have learned:

  1. That ImageMagick is capable of converting unicode non-latin characters
    This was tested by passing a hebrew word to ImageMagick via the linux command line.

  2. Therefore the problem is in the ImageMagick PHP module’s ability to interpret unicode non-latin text.

  3. The php file itself has all the necessary elements to support UTF-8 and does in fact create a
    file with a filename derived from the same text varible I am passing to ImageMagick for image creation. The filename is successfully saved on my server by the php in non-latin unicode text.

I have looked around on the net and cannot find any information on this issue when it comes
to using the ImageMagick PHP modules to create and image from text in unicode non-latin font.

Could this be a ImageMagick bug? Any help would be appreciated. thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:32:36+00:00Added an answer on May 19, 2026 at 11:32 pm

    The solution to this problem was found in a coding issue not seen here which occurs later in my PHP.
    Basically I split up the string into separate characters and needed to do so in a way that wont
    destroy 2-byte unicode characters.

    I didn’t think to show the rest of my code for people trying to help me solve this issue which
    was a big mistake on my part. lesson learned.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use Imagemagick convert.exe with Flex4 NativeProcess. I know I have it
I have installed image magick on my mac os x computer and now I
I currently have the following MacPorts installed: ImageMagick @6.6.4-9_0+q16 ImageMagick @6.6.5-0_0+q16 (active) How do
I installed ImageMagick via Homebrew . However, due to a bug I have with
I am having some trouble with ImageMagick. I have installed GhostScript v9.00 and ImageMagick-6.6.7-1-Q16
I have just installed Rails Ready script from GitHub on my Ubuntu Server 10.04.
I don't know anything about imagemagick, I have a need to convert images that
Have you ever seen any of there error messages? -- SQL Server 2000 Could
Have you managed to get Aptana Studio debugging to work? I tried following this,
I've got quite a strange problem. I've installed ImageMagick via homebrew. I've installed rmagick-2.12.2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.