English | Deutsch
Invalid characters on PNG
Mathias, 2009-07-23
Matthew, 2009-08-26
Matthew, 2009-08-27
Mathias, 2009-08-28
Matthew, 2009-08-29
Add new comment
pici-info Background and Art project |
pici-network Discussion and community forum |
pici-development Programming and debugging the pici-server Open source software |
Mathias, 2009-07-23
Hi Matthew
Most probably you wont have installed Fonts for the Chinese language. Install as many fonts as possible. There is a tutorial in the developer section with a Font-Sheet to test:
http://dev.picidae.net/dev/wiki/LinuxFontInstallation
Hope this fixes you problem
Matthew, 2009-08-26
Hi, Mathias:
By your recommend, I installed many fonts, and run "web2pici [Chinese Website] test" shell command , the test.png is correct. Even I run "/usr/bin/sudo -u root /var/www/html/pici-server/ADMIN/mkpicture_xvfb.sh "/var/www/html/pici-server/ADMIN/web2pici" "/var/www/html/pici-server/CACHE" "xyz-2" "http//......." "localhost:10.0" "/root" ", it also produce correct characters PNG file.
:)
BUT, I went back to pici-server, it produced incomplete characters PNG(i.e. some Chinese words lost)...
I don't know why?
Could you help me to solve this problem?
Thanks a lot,
Matthew, 2009-08-27
In short, the result PNG which run shell command: "web2pici [someone Chinese Website] test" is totally correct and perfect.
But, When I submit the same URL to pici-server web server, it gets the PNG which lost some Chinese words. Black points instead of some words.
PHP GD, mcrypt have installed successfully, and sudo setup has appended to /etc/sudoers.
Could you help me or give me some hints to solve this problem?
Thanks a lot,
Mathias, 2009-08-28
Is it possible that some fonts are not accessible to the user that runs web2pici when done from the web?
Matthew, 2009-08-29
The problem is solved. :)
I appended $LANG with locale value to $env array in linuxpici.class.php. It works on web and result PNG is perfect. :)
Many Thanks for your efforts about pcic-server. d^^b
Matthew, 2009-07-22