It is currently Tue Apr 23, 2024 10:37 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Need Help with PhotoFont Plugin [SOLVED]
PostPosted: Thu May 05, 2016 8:53 pm  (#1) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
Does anyone know how to create,
compile and or edit the .phf files.
Used with this PhotoFont plugin?

I'm trying to create the .phf file for a particular set of images.
To be use by this plugin and need to create the .phf file for these images,
for use with the PhotoFont plugin.

Any information that can be provided will be greatly appreciated.

Thanks Wallace.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Thu May 05, 2016 9:16 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Believe it was Rod that figured all this out, but it's been a while since I saw him post here. Believe he posted the how in a thread here (just too lazy to find it Wallace). :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Thu May 05, 2016 10:06 pm  (#3) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
lylejk wrote:
Believe it was Rod that figured all this out,
but it's been a while since I saw him post here.
Believe he posted the how in a thread here (just too lazy to find it Wallace). :)

I've look at most of what I can find in reference to this topic here on GC,
but haven't found any way to create a PHF file that works. :(

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Thu May 05, 2016 10:29 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Maybe the link below will help. :)

viewtopic.php?f=12&t=3581

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Thu May 05, 2016 11:07 pm  (#5) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
i looked at that file format a little. maybe you can hack it a little
thinking maybe you can copy an existing .phf file (like download a free .phf font)
open it up in a text editor.
then copy image data encoded in base64 and decode it
using this site.
http://www.motobit.com/util/base64-deco ... &acharset=
just copy after the 2 lines that says ...
Content-Type: image/png; charset=US-ASCII; name=Image0000.png
Content-transfer-encoding: base64
It might say something else for each imagename

and starting at the beginning of blank line after these two lines copy to the beginning of the next closing image tag (</image>)
and choose decode into binary file and name it something.png.
and open that up in Gimp and edit it to your liking
I got that far I am assuming you can just draw your own images over their images and then convert it back to base64 and paste that in to their .phf file.
and try that out.
I opened up some .phf file some smaller res files only uses/defines one image.
Other highres file files define many images so you'll have to decode and encode many of them.

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Thu May 05, 2016 11:12 pm  (#6) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
lylejk wrote:
Maybe the link below will help. :)

viewtopic.php?f=12&t=3581

Thanks Lyle. :bigthup

I've looked over everything I could find on this topic,
but still come up empty and can't compile the needed PHF file.

trandoductin wrote:
i looked at that file format a little. maybe you can hack it a little
thinking maybe you can copy an existing .phf file (like download a free .phf font)
open it up in a text editor.
then copy image data encoded in base64 and decode it
using this site.
http://www.motobit.com/util/base64-deco ... &acharset=
just copy after the 2 lines that says ...
Content-Type: image/png; charset=US-ASCII; name=Image0000.png
Content-transfer-encoding: base64
It might say something else for each imagename

and starting at the beginning of blank line after these two lines copy to the beginning of the next closing image tag (</image>)
and choose decode into binary file and name it something.png.
and open that up in Gimp and edit it to your liking
I got that far I am assuming you can just draw your own images over their images and then convert it back to base64 and paste that in to their .phf file.
and try that out.
I opened up some .phf file some smaller res files only uses/defines one image.
Other highres file files define many images so you'll have to decode and encode many of them.


Thanks Tin.
You make it all sound easy.
I can't figure out what it is I'm suppose to do.
I have all the images, I just need to make the PHF file for them.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 12:02 pm  (#7) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
I sorta created a hacked process.
try this and see if it works. This is for windows...might work in linux i don't know.

1) Have Python 2.7.11 installed.
2) Have openssl installed from here http://gnuwin32.sourceforge.net/packages/openssl.htm (I just used the first setup link. My Python script will call openssl command to decode and encode base64 the png files/data.
3) add the path to openssl to environment variables so that openssl can be called from anywhere, I added C:\Program Files (x86)\GnuWin32\bin to my environment PATH.
4) download this file and extract it to some folder the same as your free downloaded .phf file, it'll be named test.py
Attachment:
test.zip [921 Bytes]
Downloaded 150 times

5) in a command prompt, run
python test.py

it 'll ask you to enter a name of a .phf file (enter the full filename)
then I'll give you 2 choices 1 or 2
enter 1
1 will extract all the .png file(s) from the .phf file and dump it to the same folder.
This process decodes from base64 to png files
6) now go check out the png files and overwrite them, edit them or whatever.
7) when you're done editing png files.
run python test.py again, enter the same .phf file name
and choose choice 2
This process will now encode the png files into base64 and put them along with .phf original information into a file with the same name as the original .phf file except with a ".new" appended to the end of file name...
you can then rename this file to .phf file your your choice .

Try it out and let me know if this hack works for you.

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 12:18 pm  (#8) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
I sorta created a hacked process.
try this and see if it works. This is for windows...might work in linux i don't know.

1) Have Python 2.7.11 installed.
2) Have openssl installed from here http://gnuwin32.sourceforge.net/packages/openssl.htm (I just used the first setup link. My Python script will call openssl command to decode and encode base64 the png files/data.
3) add the path to openssl to environment variables so that openssl can be called from anywhere, I added C:\Program Files (x86)\GnuWin32\bin to my environment PATH.
4) download this file and extract it to some folder the same as your free downloaded .phf file, it'll be named test.py
Attachment:
test.zip

5) in a command prompt, run
python test.py

it 'll ask you to enter a name of a .phf file (enter the full filename)
then I'll give you 2 choices 1 or 2
enter 1
1 will extract all the .png file(s) from the .phf file and dump it to the same folder.
This process decodes from base64 to png files
6) now go check out the png files and overwrite them, edit them or whatever.
7) when you're done editing png files.
run python test.py again, enter the same .phf file name
and choose choice 2
This process will now encode the png files into base64 and put them along with .phf original information into a file with the same name as the original .phf file except with a ".new" appended to the end of file name...
you can then rename this file to .phf file your your choice .

Try it out and let me know if this hack works for you.

Thanks Tin. :bigthup
I did it just as you described, but when installing the PHF file.
Photofont says that the PHF file is invalid.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 1:38 pm  (#9) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
which plugin are you using maybe i'll try to install it myself to observe what's wrong with my output file

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 1:41 pm  (#10) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
which plugin are you using maybe i'll try to install it myself to observe what's wrong with my output file


I'm using the Photofont plugin.
:roll:

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 1:44 pm  (#11) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
where did you get it? can you link me to it? i tried going to some link and it's broken from this gimpchat forum so i don't know where to get it.

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 1:58 pm  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
the link works, i just had to sign in to drop box.
so what do i do with these files drop them in my gimp's plugin folder?
I think you linked me the wrong .zip i only see .phf files and no .exe's

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 2:08 pm  (#13) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
the link works, i just had to sign in to drop box.
so what do i do with these files drop them in my gimp's plugin folder?
I think you linked me the wrong .zip i only see .phf files and no .exe's

Yes that was the wrong file. :oops:

Here's the correct file link... https://www.dropbox.com/s/ts2y630qro44p ... i.zip?dl=0

The PSPI.exe goes into you Gimp plugins folder.
The pspi.exe allows you to use PhotoShop plugins with Gimp.

The PhotoFont.exe needs to be installed. Once it's installed. It will show up as PhotoFont Start in your list of installed programs.
Before you install it, you first need to create a folder named Photoshop Plug-In, in you Gimp User folder.

When you install PhotoFont it will ask you where to install it. You will need to install the plugin into the new Photoshop Plug-In folder you made. The photofont installation file in named ps2win.exe.

You also need to configure the PSPI plugin, so that it will look for PhotoShop plugins in the new Photoshop Plug-In you made in your Gimp User folder.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 2:10 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
i'll try and see what happens...i am determined to get this hack using existing .phf to work

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 2:13 pm  (#15) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
i'll try and see what happens...i am determined to get this hack using existing .phf to work

MareroQ seemed to figure it out rather quickly.
Thanks and good luck. :bigthup

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 2:18 pm  (#16) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
Wallace wrote:

You also need to configure the PSPI plugin, so that it will look for PhotoShop plugins in the new Photoshop Plug-In you made in your Gimp User folder.[/align]

I did everything except this step...how do i do it?
In Gimp I tried to look for PSPI or PhotoFont and nothing showed up so I don't know what to do next.

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 2:24 pm  (#17) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 3975
Location: Canada
never mind i see it.
and got PhotoFont to start.
Now i just gotta find out why it's invalid

_________________
TinT


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 2:36 pm  (#18) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
trandoductin wrote:
never mind i see it.
and got PhotoFont to start.
Now i just gotta find out why it's invalid

Too late... :hehe


trandoductin wrote:
Wallace wrote:

You also need to configure the PSPI plugin, so that it will look for PhotoShop plugins in the new Photoshop Plug-In you made in your Gimp User folder.

I did everything except this step...how do i do it?
In Gimp I tried to look for PSPI or PhotoFont and nothing showed up so I don't know what to do next.

If you installed the PSPI.exe into your plugins folder, it should show up in filters.

Image

Create a new folder named Photoshop Plugins, in your Gimp User folder.
Configure PSPI to look for this new folder.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 3:01 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2606
Location: California
Is PhotoFont Free? I have the file downloaded, I just haven't installed it.


Top
 Post subject: Re: Need Help with PhotoFont Plugin
PostPosted: Fri May 06, 2016 3:05 pm  (#20) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 13015
Location: Native to NYC living in Arizona, Gimp 2.8 & 2.10, Win 11 PC.
mackenzieh wrote:
Is PhotoFont Free?
I have the file downloaded,
I just haven't installed it.

Yes it's free, but it's not easy to find.

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Baby's first GEGL plugin - a very basic GEGL plugin anyone can make.

9

No new posts Can't get plugin to appear (mostly)

3

No new posts Attachment(s) Plugin superxBR

7

No new posts Attachment(s) eps plugin crashes

4

No new posts Attachment(s) Plugin Potrace

11



* Login  



Powered by phpBB3 © phpBB Group