|
Post by jamesbowman on Jul 25, 2018 19:24:15 GMT -8
Hi all, I have built Windows executables of gd2asset and gd3asset. They are both available for download here: www.excamera.com/files/gd2asset.exewww.excamera.com/files/gd3asset.exeThese are stand-alone command-line programs, use them from the shell as described here. Note that they take a few seconds to unpack so there is some startup delay, particularly the first time they are run.
|
|
|
Post by Ronan on Mar 20, 2019 9:46:56 GMT -8
Hi,
When I launch gd2asset.exe, it crashes. It opens up for a few seconds, briefly displays Assets and then closes by itself. I m using Windows 10 64-bit. I was also trying to use the Python command. I was able to get assets for .png images however i failed to get assets for custom fonts. The error that comes up is
\Python27\python \Python27\Scripts\gd2asset comicsans.ttf,size=30
C:\Users\Desktop>\Python27\python \Python27\Scripts\gd2asset comicsans.ttf,size=30 Traceback (most recent call last): File "\Python27\Scripts\gd2asset", line 4, in <module> __import__('pkg_resources').run_script('gameduino2==0.2.4', 'gd2asset') File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 664, in run_script self.require(requires)[0].run_script(script_name, ns) File "C:\Python27\lib\site-packages\pkg_resources\__init__.py", line 1451, in run_script exec(script_code, namespace, namespace) File "C:\Python27\lib\site-packages\gameduino2-0.2.4-py2.7.egg\EGG-INFO\scripts\gd2asset", line 156, in <module>
File "build\bdist.win32\egg\gameduino2\prep.py", line 634, in make File "C:\Python27\lib\site-packages\gameduino2-0.2.4-py2.7.egg\EGG-INFO\scripts\gd2asset", line 109, in addall
File "C:\Python27\lib\site-packages\gameduino2-0.2.4-py2.7.egg\EGG-INFO\scripts\gd2asset", line 63, in ttf
File "build\bdist.win32\egg\gameduino2\prep.py", line 347, in load_ttf File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 218, in truetype return FreeTypeFont(filename, size, index, encoding) File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 134, in __init__ self.font = core.getfont(file, size, index, encoding) File "C:\Python27\lib\site-packages\PIL\ImageFont.py", line 34, in __getattr__ raise ImportError("The _imagingft C module is not installed") ImportError: The _imagingft C module is not installed
So the following command works,
\Python27\python \Python27\Scripts\gd2asset -o myassets.h pic2.png
but the command
\Python27\python \Python27\Scripts\gd2asset comicsans.ttf,size=30
is not?
Thanks
|
|
|
Post by Ronan on Mar 21, 2019 3:39:01 GMT -8
Hi,
So I actually got to the bottom of this problem. I ended up reinstalling everything trying different variations of install.
There are a few points you need to take into account with this install.
Firstly the version of Python,
I downloaded Python 2.7.16. There were a few download options. When i had the 64-bit Windows Python installed there were problems installing PIL. When you instead install the version of Python under the link (Windows x86 MSI installer) it installs a 32-bit version for Intel chips. Then PIL can be installed properly.
For PIL,
For the PIL link on the excamera website under PIL 1.1.7 i selected the link --> Python Imaging Library 1.1.7 for Python 2.7 (Windows only).
Then after this, I then installed pip and the easy_install tool. After this it worked.
Thanks, Ronan
|
|
|
Post by Ronan on Mar 21, 2019 4:27:51 GMT -8
Ok sorry for the previous post, i was mistaken. It still isnt working. I m still getting the ImportError: The _imagingft C module is not installed. I have tried all kinds of ways of installing PIL still gives this error.
\Python27\python \Python27\Scripts\gd2asset comicsans.ttf,size=30
If i can get my hands on a linux machine i would do that. But this has been very frustrating getting it working on Windows.
|
|
|
Post by jamesbowman on Mar 31, 2019 18:25:09 GMT -8
|
|
|
Post by Ronan on Apr 1, 2019 2:32:42 GMT -8
Last night, I literally just got my hands on my old Raspberry Pi (raspbian(debian) jesse) and was able to generate the custom fonts with it Was holding off using linux via virtual machine because my PC is low on disk space. Might try the windows version too. Thank you.
|
|