It is currently Thu Jul 31, 2014 1:21 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]




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

Joined: Mar 14, 2011
Posts: 930
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
 Profile  
 
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Thu Aug 25, 2011 10:31 pm  (#102) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 68
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
 Profile  
 
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 12:37 am  (#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
 Profile  
 
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 2:02 am  (#104) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 11320
Location: "Looking for my eraser" =P
Thanks Partha and Mr. Q it works excellent now.

Image

_________________
Image
____________
OK, . . . . so what's the speed of dark?


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

Joined: Mar 14, 2011
Posts: 930
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
 Profile  
 
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 7:01 am  (#106) 
Offline
GimpChat Member

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


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

Joined: Mar 14, 2011
Posts: 930
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
 Profile  
 
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 9:27 am  (#108) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 68
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
 Profile  
 
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 10:13 am  (#109) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5883
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
 Profile  
 
 Post subject: Re: Gimp APNG Plug-in Compiled for Windows
PostPosted: Fri Aug 26, 2011 2:14 pm  (#110) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 11320
Location: "Looking for my eraser" =P
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
____________
OK, . . . . so what's the speed of dark?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 134 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12, 13, 14  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

* Login  

* Subscribe to Gimp Chat's RSS Feed    * Subscribe to Gimp Chat's Tutorial Feed    * Subscribe to Gimp Chat's G'MIC Feed


Powered by phpBB3 © phpBB Group