Gallery+ImageMagick & Unicode directory names

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
mamouneyya

Gallery+ImageMagick & Unicode directory names

Post by mamouneyya »

I'm using ImageMagick with Gallery script. I tested it on my local server (Mac OS X) with no problems at all, but in my hosted server a problem happens with Arabic directory names. I can add albums with Arabic directory names in Gallery, but, unlike the situation on my local server, ImageMagick on my hosted server is always unable to generate a thumb for photos uploaded to Arabic directories. It can if I changed the directory name to English name.

Related discussion on Gallery forums: http://gallery.menalto.com/node/94714

I am asking help here because after that discussion I came to realize that the problem relates to server configuration/software. I think this is a good place as you, ImageMagick developers, should know exactly what it needs to work properly in my situation.

The errors from server error log:

Code: Select all

[Mon Mar 01 23:36:02 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/\xd9\x83\xd9\x88\xd8\xb3\xd8\xa7/Picture 12.png, referer: http://*****.com/gallery_cleantmp/index.php/kusa
[Mon Mar 01 23:35:58 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/\xd9\x83\xd9\x88\xd8\xb3\xd8\xa7/Picture 12.png, referer: http://*****.com/gallery_cleantmp/index.php/kusa
[Mon Mar 01 23:35:56 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/\xd9\x83\xd9\x88\xd8\xb3\xd8\xa7/Picture 12.png, referer: http://*****.com/gallery_cleantmp/index.php/kusa

convert: missing an image filename `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/Picture 12.png' @ error/convert.c/ConvertImageCommand/2919.
convert: unable to open file `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png' @ error/png.c/ReadPNGImage/2951.
convert: unable to open image `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png':  @ error/blob.c/OpenBlob/2484.
convert: missing an image filename `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png' @ error/convert.c/ConvertImageCommand/2919.
convert: unable to open file `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png' @ error/png.c/ReadPNGImage/2951.
convert: unable to open image `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png':  @ error/blob.c/OpenBlob/2484.
convert: missing an image filename `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png' @ error/convert.c/ConvertImageCommand/2919.
convert: unable to open file `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png' @ error/png.c/ReadPNGImage/2951.
convert: unable to open image `/home/****/public_html/gallery_cleantmp/var/thumbs/كو/k2img--f6ec2dc0bce0dc580155ff786a1009bab5fe3367.png':  @ error/blob.c/OpenBlob/2484.

[Mon Mar 01 23:24:11 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/batata/P1010326.JPG, referer: http://*****.com/gallery_cleantmp/index.php/batata
[Mon Mar 01 23:24:11 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/batata/P1010327.JPG, referer: http://*****.com/gallery_cleantmp/index.php/batata
[Mon Mar 01 23:24:08 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/batata/.album.jpg, referer: http://*****.com/gallery_cleantmp/index.php/

[Mon Mar 01 23:23:31 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/\xd8\xa8\xd8\xb7\xd8\xa7\xd8\xb7\xd8\xa7/P1010326.JPG, referer: http://*****.com/gallery_cleantmp/index.php/batata
[Mon Mar 01 23:23:30 2010] [error] [client 64.62.196.25] File does not exist: /home/****/public_html/gallery_cleantmp/var/thumbs/\xd8\xa8\xd8\xb7\xd8\xa7\xd8\xb7\xd8\xa7/P1010327.JPG, referer: http://*****.com/gallery_cleantmp/index.php/batata
Any help/advice is highly appreciated.
Thanks in advanced.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Gallery+ImageMagick & Unicode directory names

Post by magick »

We created a directory like this:
  • cd /tmp
    mkdir اختبار
and then used these commands:
  • convert logo: اختبار/logo.png
    identify -verbose اختبار/logo.png
and ImageMagick 6.6.0-1 ran without complaint under Redhat / CentOS 5.4. Give us a simple command line sequence that fails for you. We need to reproduce the problem before we can offer a solution.
Post Reply