It is currently Sat Apr 20, 2024 12:55 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 134 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next
Author Message
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Thu Aug 25, 2011 4:58 pm  (#101) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
MareroQ wrote:
I do not know if this helps:
JamesH version (for XP 32 bit)
http://www.gimpchat.com/viewtopic.php?f=8&t=2241&hilit=JamesH&start=40
also has requirements for ui:

Error loading UI file 'C:/msys/opt/GIMP-2.7/share/gimp-apng\ui/plug-ins/plug-in-
file-apng.ui': Failed to open file 'C:/msys/opt/GIMP-2.7/share/gimp-apng\ui/plug
-ins/plug-in-file-apng.ui': Permission denied
(file-apng:3840): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (
widget)' failed

Partha!
Although a strange location (ui) - it works - thank You for sharing.

Hi MareroQ,

Thanks! :)

I have been investigating and it seems a little more of an issue than I originally thought. The problem is that during compilation of file-apng.c, the datadir is passed in and the ui_file location gets sort of hardcoded into file-apng.exe. If you have access to strings and you examine file-apng.exe then you will see the above location in the executable file. I will continue to investigate whether I can make the exe location independent. This will take time since I have to figure out how the authors coded the whole shebang.

In the meantime, if anyone is interested to use apng, you will have to do what MareroQ did (for 32 bit). For 64-bit check the error and create the appropriate location.

BTW, the "strange" location is my development environment - separate for 32-bit and 64-bit. :)

Sorry for the "inelegant" solution for the time being.

Thanks,
Partha


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Thu Aug 25, 2011 9:31 pm  (#102) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
MareroQ wrote:
I do not know if this helps:
JamesH version (for XP 32 bit)
http://www.gimpchat.com/viewtopic.php?f=8&t=2241&hilit=JamesH&start=40
also has requirements for ui:

Error loading UI file 'C:/msys/opt/GIMP-2.7/share/gimp-apng\ui/plug-ins/plug-in-
file-apng.ui': Failed to open file 'C:/msys/opt/GIMP-2.7/share/gimp-apng\ui/plug
-ins/plug-in-file-apng.ui': Permission denied
(file-apng:3840): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (
widget)' failed

Partha!
Although a strange location (ui) - it works - thank You for sharing.

i had a update.
change load plug-in-file-apng.ui from user-specific GIMP settings plug-ins directory
"settings/plug-ins" on my build or ".gimp-2.7.3/plug-ins" on Partha's build.
static gboolean
save_dialog (gint32    image_ID,
             gboolean  alpha)
{
  PngSaveGui    pg;
  GtkWidget    *dialog;
  GtkBuilder   *builder;
  gchar        *ui_file;
  GimpParasite *parasite;
  GError       *error = NULL;

  /* Dialog init */
  dialog = gimp_export_dialog_new (_("APNG"), PLUG_IN_BINARY, SAVE_PROC);
  g_signal_connect (dialog, "response",
                    G_CALLBACK (save_dialog_response),
                    &pg);
  g_signal_connect (dialog, "destroy",
                    G_CALLBACK (gtk_main_quit),
                    NULL);

  /* GtkBuilder init */
  builder = gtk_builder_new ();
  //ui_file = g_build_filename (DATADIR, "ui/plug-ins/plug-in-file-apng.ui",
  //                            NULL);
  ui_file = g_build_filename (gimp_directory(), "/plug-ins/plug-in-file-apng.ui", NULL);


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Thu Aug 25, 2011 11:37 pm  (#103) 
Offline
GimpChat Member

Joined: May 15, 2010
Posts: 64
partha wrote:
I have been investigating and it seems a little more of an issue than I originally thought. The problem is that during compilation of file-apng.c, the datadir is passed in and the ui_file location gets sort of hardcoded into file-apng.exe. If you have access to strings and you examine file-apng.exe then you will see the above location in the executable file. I will continue to investigate whether I can make the exe location independent. This will take time since I have to figure out how the authors coded the whole shebang.


In my build I changed it this way:

ui_file = g_build_filename (gimp_plug_in_directory(), "plug-ins", "file-apng.ui", NULL);


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 1:02 am  (#104) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Thanks Partha and Mr. Q it works excellent now.

Image

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 5:27 am  (#105) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Hi JamesH & MaxSt,

That was my first try since that is how file-png.c is set up. However, I am still getting GTK errors. You will notice this on a non-developmental machine away from your own machine where you develop.

Using strings, can you check the location coded into fine-apng.exe?

Thanks,
Partha

Edit: Too early in the morning- should have read more carefully. :)

The file-png.c uses gimp_data_directory() and you can still relocate. So, I will try you solutions and recheck.


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 6:01 am  (#106) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2241
Location: Poland
Hi JamesH,
You have entered the code - unfortunately I do not know how to use it?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 6:27 am  (#107) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
MareroQ wrote:
Hi JamesH,
You have entered the code - unfortunately I do not know how to use it?

MareroQ,

He is saying to change the code in file-apng.c and recompiling.

Partha


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 8:27 am  (#108) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
MareroQ wrote:
Hi JamesH,
You have entered the code - unfortunately I do not know how to use it?

compiled version is here
http://www.gimpchat.com/viewtopic.php?f=8&t=2241&hilit=JamesH&start=40#p29382


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 9:13 am  (#109) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Any hope for a more user friendly version of this cool plugin (more integrated with the export dialog )?

The problem is that using the saving dialog (in gimp 2.7 the export dialog) as usual, try to save a apng just adding a .apng postfix to the name (as "image.apng" ) lead to error message (unsupported file type ) and failure

the solution is to use instead a more hidden option in the export dialog , but that is not too user friendly, many will just get up after the error message

Instead would be nice if just adding "apng" to the image name in the main "export" dialog would open the apng-plugin dialog

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 1:14 pm  (#110) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
If you use that path PC it works very nicely.
Just place Parthas "plug-in-file-apng.ui" in this directory tree you can create it yourself.
C:\win32\msys\local\share\gimp-apng\ui\plug-ins
The hard coded exe file looks for it there to build the user interface for the animation export dialog. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 1:31 pm  (#111) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
my comment was about a older version i will try this

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 3:05 pm  (#112) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I think Partha is going to re-compile it to work in the ui directory tree. :)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 6:56 pm  (#113) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
I think Partha is going to re-compile it to work in the ui directory tree. :)


Hey Rod,

I am going to give it one more try. :)

Can you test the attached version? For the sake of completeness, all the files are included here.

The installation is same as before:

Installation:
1. Copy the dll file to the Gimp-2.7.3\bin directory (typically c:\Program Files\Gimp-2.7.3\bin)
2. Copy the exe file to the Gimp-2.7.3 plugins directory (typically c:\Program Files\Gimp-2.7.3\lib\gimp\2.0\plug-ins)
3. Copy the ui file to the Gimp 2.7.3 ui directory (typically c:\Program Files\Gimp-2.7.3\share\gimp\2.0\ui\plug-ins).
4. For the time being, rename the png plugin to something else (typically found at c:\Program Files\Gimp-2.7.3\lib\gimp\2.0\plug-ins), for example file-png.old.
5. Restart (or start) Gimp.

PC, for the portable version, you can simply do the above.


Attachments:
File comment: APNG Plugin 32-bit for Gimp 2.7.3 or higher
apng-2.7.3-32bit.7z [188.09 KiB]
Downloaded 1328 times
File comment: APNG Plugin 64-bit for Gimp 2.7.3 or higher.
apng-2.7.3-64bit.7z [203.85 KiB]
Downloaded 649 times
Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 8:51 pm  (#114) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
PhotoComix wrote:
Any hope for a more user friendly version of this cool plugin (more integrated with the export dialog )?

The problem is that using the saving dialog (in gimp 2.7 the export dialog) as usual, try to save a apng just adding a .apng postfix to the name (as "image.apng" ) lead to error message (unsupported file type ) and failure

the solution is to use instead a more hidden option in the export dialog , but that is not too user friendly, many will just get up after the error message

Instead would be nice if just adding "apng" to the image name in the main "export" dialog would open the apng-plugin dialog

maybe you can try my compiled version.
it no need to delete orig file file-png.exe
save file, just type file name with the extension apng
http://www.gimpchat.com/viewtopic.php?f=8&t=2241&hilit=JamesH&start=40#p29382
source
http://www.gimpchat.com/viewtopic.php?f=8&t=2241&hilit=JamesH&start=60#p29683


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 9:06 pm  (#115) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Partha it works excellent! :bigthup

Thanks!


Image

But can we just place the DLL and exe files in the user/gimp-2.7/plugins folder?
Just to make for easier install?(especially for future updates)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 9:21 pm  (#116) 
Offline
GimpChat Member

Joined: Mar 14, 2011
Posts: 998
Rod wrote:
Partha it works excellent! :bigthup

Thanks!


Image

But can we just place all the files in the user/gimp-2.7/plugins folder?
Just to make for easier install?(especially for future updates)


So, you didn't have to create the "strange" directory as before, correct? Matter of fact, can you delete that directory and restart Gimp and make sure that APNG is still working?

Well, you can't place them all in plugins folder since they are not plugins. :)

I personally think that the DLLs should go in the main bin directory since that's where all the DLLs are. In the future when I build Gimp, you will not need the DLL anyway, so don't worry about. :)

You have to place the UI file in the UI directory since that's the directory structure currently used for PNG and GIF and probably other future UIs unless the directory structure changes again.

Thanks!
Partha


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 9:39 pm  (#117) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I took the liberty of taking the ui file out of the strange directory before i started Gimp and it worked.
What i actually did was remove the old dll, and exe, and removed the ui file from the strange directory and placed those all on my desktop.Then i followed your install instructions for the new package, and started Gimp.I then loaded Mollys apng file as an png-apng image then exported it as an png-apng with a different name.

Worked fine. :)

Thanks again.

I just wanted to mention again that i did have to overwrite an existing libpng15-15.dll the first time i downloaded your package.It didn't do any harm to any other plugins (they all seem to work still), and i have no idea why it was there. :lol

If i have any future problems i will let you know.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Sat Aug 27, 2011 12:41 am  (#118) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2241
Location: Poland
For XP 32bit location "ui" is still different than the specified c: \ Program Files \ Gimp-2.7.3 \ share \ gimp \ 2.0 \ ui \ plug-ins.

Version Partha:
This is a development version of GIMP. Debug messages may appear here.
Error loading UI file 'C:\Program Files\Gimp-2.7.3\lib\gimp\2.0\plug-ins\share\g
imp\2.0\ui/plug-ins/plug-in-file-apng.ui': Failed to open file 'C:\Program Files
\Gimp-2.7.3\lib\gimp\2.0\plug-ins\share\gimp\2.0\ui/plug-ins/plug-in-file-apng.u
i': No such file or directory
(file-apng:1984): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (
widget)' failed

Version JamesH:
Error loading UI file 'C:\GIMP-2.7\settings/plug-ins/plug-in-file-apng.ui': Fail
ed to open file 'C:\GIMP-2.7\settings/plug-ins/plug-in-file-apng.ui': No such fi
le or directory
(file-apng:2140): Gtk-CRITICAL **: gtk_container_add: assertion `GTK_IS_WIDGET (
widget)' failed.

Standardization also requires naming - file *.png (Partha) or *.apng (JamesH)?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Sat Aug 27, 2011 1:49 am  (#119) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
Please check the C:\GIMP-2.7\settings/plug-ins folder.
Is there have that file.
Thanks.


Top
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Sat Aug 27, 2011 5:40 am  (#120) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Attn: JamesH,
Should the plug-in-file-apng.ui be in gimp-2.0-ui-plug-ins folder
OR
gimp-2.7-settings-plug-in folder
I have it in 2.0-ui-plug-ins and I don't get the (Save as Animation) in the dialog box to save it as a png (apng) extension.

_________________
Image


Top
Post new topic Reply to topic  [ 134 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Has anyone compiled Resynthesizer 2.03 for Windows?

2

No new posts Attachment(s) APNG (animated PNG) plug-in for Gimp 2.10 Windows64x

4

No new posts Officially compiled GEGL Filter plugins for Windows

8

No new posts Calling GIMP Plug-in From Command Line - on Windows

0

No new posts Attachment(s) Don't work procedures plug-in-bump-map, plug-in-displace

2



* Login  



Powered by phpBB3 © phpBB Group