It is currently Thu May 02, 2024 4:02 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 95 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 3:08 am  (#61) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
Oregonian wrote:
Still no joy after deleting file-png.exe and trying to save as apng.

have you try this viewtopic.php?f=8&t=2241&start=40#p29382


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 3:33 am  (#62) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
about the GAP apply filter problem
i think that may be was gimp 2.7's problem

you can copy files from 2.6(that work correct's version) to the 2.7
it won't crash, but it only do one frame, and skip else

even i grab GAP 2.7.0 from http://git.gnome.org/browse/gimp-gap/
after compiled, it has the same problem
won't crash, but only do one frame, and skip else


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 3:44 am  (#63) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Yes i think the problem with GAP is the new UI in Gimp-2.7.3 or something.
But if you really want GAP in portable it is possible. :)

I now have MathMap, GAP, and GMIC all installed into my Gimp_Portable-2.6.11.
I am going to try and get themes and Python-26 in there as well.I have added Python26 before so i think that will be pretty easy.

That would make it virtually full fledged portable Gimp.The only down size is it may be a 200-250 mb size.Which on most flash drives would be no big deal anyways.As most are 4 gigs or more these days.

Just need to figure out a way to compress it much smaller for downloading.Maybe RAR would work well.

_________________
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 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 5:14 am  (#64) 
Offline
GimpChat Member

Joined: May 15, 2010
Posts: 64
JamesH wrote:
Thank you all, glad that can help.

apng.zip
i made some fixed, change file extension to apng
now it should work on gimp 2.7

it no need to delete orig file file-png.exe
save file, just type file name with the extension apng


Hi James, could you post a source code? Thanks.


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 10:13 am  (#65) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2251
Location: Poland
James. Again, another question (not related to GAP)
Your version of GIMP with Python 2.6.5
Partha used Python 2.7.1
Is this intentional ?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 10:35 am  (#66) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
MaxSt wrote:
JamesH wrote:
Thank you all, glad that can help.

apng.zip
i made some fixed, change file extension to apng
now it should work on gimp 2.7

it no need to delete orig file file-png.exe
save file, just type file name with the extension apng


James, I tried the apng with taking out the original png and with it, and this apng still doesn't work for me. It doesn't show up on the drop down menus either.

_________________
Image


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 5:54 pm  (#67) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Rod
.7zip are much smaller then .zip

_________________
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 2.7 with GAP pre-installed
PostPosted: Tue Jul 26, 2011 7:56 pm  (#68) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
MaxSt wrote:
JamesH wrote:
Thank you all, glad that can help.

apng.zip
i made some fixed, change file extension to apng
now it should work on gimp 2.7

it no need to delete orig file file-png.exe
save file, just type file name with the extension apng


Hi James, could you post a source code? Thanks.

source gimp-apng-0.1.0.zip
it just change the file extension

MareroQ wrote:
James. Again, another question (not related to GAP)
Your version of GIMP with Python 2.6.5
Partha used Python 2.7.1
Is this intentional ?

gimp only need python interpreter with version >= 2.5.0
if it could work, i think there is no need to update to the newest.

molly wrote:
MaxSt wrote:
JamesH wrote:
Thank you all, glad that can help.

apng.zip
i made some fixed, change file extension to apng
now it should work on gimp 2.7

it no need to delete orig file file-png.exe
save file, just type file name with the extension apng


James, I tried the apng with taking out the original png and with it, and this apng still doesn't work for me. It doesn't show up on the drop down menus either.

the file extension changed, and the name in drop down list changed either.
Image


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Wed Jul 27, 2011 12:24 am  (#69) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
PhotoComix wrote:
Rod
.7zip are much smaller then .zip


Thanks PC! :bigthup

_________________
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 2.7 with GAP pre-installed
PostPosted: Wed Jul 27, 2011 2:51 am  (#70) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Is there a GAP 2-7, I could not find it and your GAP version should match your gimp version e.g. gap 2-2 for gimp 2.2, gap 2-6 for gimp 2-6 and so on. (Quoted from gimpusers)

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Wed Jul 27, 2011 10:05 am  (#71) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Graechan wrote:
Is there a GAP 2-7, I could not find it and your GAP version should match your gimp version e.g. gap 2-2 for gimp 2.2, gap 2-6 for gimp 2-6 and so on. (Quoted from gimpusers)

There supposedly is one residing at GIT but it isn't compatible with Gimp-2.7 versions either.
Probably the same one with a different name.
The source is available i wonder if someone could try and compile it for 2.7.3?
*does raindance for Partha* :hexer :geekon :umbsmile

_________________
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 2.7 with GAP pre-installed
PostPosted: Wed Jul 27, 2011 6:49 pm  (#72) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
I agree Rod That would be good to have a GAP 2-7 to be compatable with all gimp 2-7 versions with a 64 bit one also, I'm doing rainndance from Aus as well. :ditto :umbsmile

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Wed Jul 27, 2011 8:27 pm  (#73) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Rod wrote:
The source is available i wonder if someone could try and compile it for 2.7.3?
*does raindance for Partha* :hexer :geekon :umbsmile


If the problem is mainly in "Filter all layers" and/or in " Frame modify-apply filter on frame" maybe recompile will not help

This because both require a "iter" file be present (in GAP or in the plugin )for each of the plugin to be called (and that why between 3rd party plugin only liquid rescale may be called from GAP, because its developer taked care to include that file)

And if all that files has to be rewritten that would require much more time and effort then just recompile GAP

see next message

_________________
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 2.7 with GAP pre-installed
PostPosted: Wed Jul 27, 2011 8:40 pm  (#74) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Here the how to (copied from the doc folder in gap-2.6 source ) that is already done for all the plugin included in gimp BUT should be done again when are changes in the API (as from 2.4 to 2.6 and now from 2.6.to 2.8)

but don't expect the Gap team correct that if not some mounths after the release of Gimp 2.8 , if you want before than should be someone else to do it (also because there is not any GAP team but only its developer )



######################################################################################################################################################
This README_developers file should be read by Plug-In authors:

How to make a GIMP Plug-In an "Animated" one:
---------------------------------------------

First of all:

the plugin must be able to operate on a single Drawable,
----------------------------
further it must be able to run with last_values and in interactive mode.
-------------------- -----------

For the Animated Plugin Call we need an Iterator Procedure.
This Procedure is named like the Plugin with the extension "_Iterator".
The Iterator Procedure has to know the Plugin's internal datastructure
and has to modify Its "LastValues" step by step at each call.

The GAP-PDB-Browser <Image>/Filters/Animation/Filter All Layers
checks for the existance of Iterator Procedures in the PDB
1.) <plugin_name>_Iterator
2.) <plugin_name>_iter_ALT

If one of the iterator procedures was found in the PDB, the
"Apply Varying" Button is set sensitive to allow animated calls
for the selected procedure.


You can generate the "plug_in_XXXX_Iterator"
for a Plugin as separated Sourcefile, ready to compile.
(The Plugin must be found in the PDB at generation time)

# this example uses the Plugin whirlpinch

1.a # for bourne and ksh users:

GAP_DEBUG=y
export GAP_DEBUG

1.b # for csh users
setenv GAP_DEBUG y

2. # change to the directory, where you like to generate the sourcecode
cd /usr/local/gimp-0.99.17/plug-ins/whirlpinch

3. # start the Gimp
gimp

4. # open or create any image
File->New

5. # call the GAP Plugin for Animated Filter apply
# from within the image
Filters->Animation->Filter all Layers

# if you have set GAP_DEBUG as shown above,
# the Window should contain the Button "Gen Code by name"

# Type the name of your Plugin into the Search Inputfield
# (Click "Search by Name" Button, to check if the Plugin
# is available in the PDB)

# Then click "Gen Code by Name" Button and then "Cancel" Button.

# This will generate 4 files in the current directory:
gen_filter_iter_forward.c
gen_filter_iter_tab.c
plug_in_whirl_pinch_iter_ALT.inc
plug_in_whirl_pinch_iter.c

# You can quit the gimp and delete the 3 files named "gen_filter_iter_*"

6. # compile and link the generated Source, plug_in_whirl_pinch_iter.c
# and install the linked executeable
# in global or private plug-in directory

gimptool --install plug_in_whirl_pinch_iter.c

# (if you dont have gimptool, you can use a copy of the original Plugin's Makefile
# and change the Plugins <name> by <name_iter> to do that job.)


7. # start the gimp again,
# and open or create an Image that has at least 3 Layers.
# Test the "Animated Filter apply"

Filters->Animation->Filter all Layers

# Use the "Apply Varying" Button,
# it should be sensitive now (if all went well so far).

8. # In case of error:
# If you get an Error Message (in the shell, where you started the gimp)
# that looks like:

ERROR: xxxx_Iterator stored Data missmatch in size N != M

# you have to change the generated code manually.
# (check for calls to "gimp_set_data" or "gimp_get_data" that are using
# the plugins name as key argument within the plugin's sourcecode.
# The passed datastructure has to match exactly in size with the generated one
# for the example above the generated structure is:
# plug_in_whirl_pinch_iter.c:
typedef struct t_plug_in_whirl_pinch_Vals
{
gdouble whirl;
gdouble pinch;
gdouble radius;
} t_plug_in_whirl_pinch_Vals;


If you are the Author of a Plugin you may decide to include the _Iterator
within the original Sources of your Plugin. In that case you have to check
the name argument in the run procedure.




Example Code:

query()
{
static GimpParamDef args_plugin[] =
{
{PARAM_INT32, "run_mode", "non-interactive"},
{PARAM_IMAGE, "image", "the image"},
{PARAM_DRAWABLE, "drawable", "the drawable"},
{PARAM_INT32, "value", "my_parameter value"},
};
static gint nargs_plugin = G_N_ELEMENTS (args_plugin);

static GimpParamDef args_iter[] =
{
{PARAM_INT32, "run_mode", "non-interactive"},
{PARAM_INT32, "total_steps", "total number of steps (# of layers-1 to apply the related plug-in)"},
{PARAM_FLOAT, "current_step", "current (for linear iterations this is the layerstack position, otherwise some value inbetween)"},
{PARAM_INT32, "len_struct", "length of stored data structure with id is equal to the plug_in proc_name"},
};
static gint nargs_iter = G_N_ELEMENTS (args_iter);

static GimpParamDef *return_vals = NULL;
static gint nreturn_vals = 0;

gimp_install_procedure("plug_in_XXXX,
"plug_in_XXXX can do ....",
"",
"Authors Name",
"Copyright",
"Date",
"<Image>/Filters/Effects/XXXX",
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_plugin, nreturn_vals,
args_plugin, return_vals);


gimp_install_procedure("plug_in_XXXX_Iterator,
"This extension calculates the modified values for one iterationstep for the call of plug_in_XXXX",
"",
"Authors Name",
"Copyright",
"Date",
NULL, /* do not appear in menus */
NULL,
GIMP_PLUGIN,
nargs_iter, nreturn_vals,
args_iter, return_vals);
}




static void p_delta_long(long *val, long val_from, long val_to, gint32 total_steps, gdouble current_step)
{
double delta;

if(total_steps < 1) return;

delta = ((double)(val_to - val_from) / (double)total_steps) * ((double)total_steps - current_step);
*val = val_from + delta;

}



static void
run (const gchar *name,
gint n_params,
const GimpParam *param,
gint *nreturn_vals,
GimpParam **return_vals)
{
static GimpParam values[1];
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
GimpRunMode run_mode;
gint32 len_struct;
gint32 total_steps;
gdouble current_step;

long pval; /* plug_in_XXXX has one parameter of type long */
long *pval_from, *pval_to; /* values for 1.st and last layer
* when they were processed by "plug_in_gap_layers_run_animfilter"
*/

*nreturn_vals = 1;
*return_vals = values;
values[0].type = GIMP_PDB_STATUS;


run_mode = param[0].data.d_int32;

if (strcmp (name, "plug_in_XXXX") == 0)
{
.... /* start the plugin itself */
}
else if (strcmp (name, "plug_in_XXXX_Iterator") == 0)
{
/* Iterator procedure is usually called from
* "plug_in_gap_layers_run_animfilter"
* (always run noninteractive)
*/
if ((run_mode == GIMP_RUN_NONINTERACTIVE) && (n_params == 4))
{
total_steps = param[1].data.d_int32;
current_step = param[2].data.d_float;
len_struct = param[3].data.d_int32;

if(len_struct == sizeof(pval))
{
/* get _FROM and _TO data,
* This data was stored by plug_in_gap_layers_run_animfilter
*/

gimp_get_data("plug_in_XXXX_ITER_FROM", pval_from);
gimp_get_data("plug_in_XXXX_ITER_TO", pval_to);

p_delta_long(&pval, *pval_from, *pval_to, total_steps, current_step);

gimp_set_data("plug_in_XXXX", &pval, sizeof(pval));
}
else status = GIMP_PDB_CALLING_ERROR;
}
else status = GIMP_PDB_CALLING_ERROR;
}

values[0].type = GIMP_PDB_STATUS;
values[0].data.d_status = status;
}


Important for Plugin_Authors:
I have made Iterator Procedures for more than 50 existing Procedures.
(see gap_filter_iterators.c and subdirectories iter_ALT/*/*.inc)
If your Plugin is found in gap_filter_iterators.c, and You make updates
to your Plugin's interface, you should write (or generate) your own _Iterator Procedure,
to keep its Animated capabilities intact.
(You don't need to change gap sources to do that, because the Iterator
named "plug_in_XXXX_Iterator" is used rather than "plug_in_XXXX_Iterator_ALT" )

_________________
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 2.7 with GAP pre-installed
PostPosted: Thu Jul 28, 2011 6:05 am  (#75) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I do not blame them for not wanting to fix them, it's a lot of work on their part.Of course if you only chose 10 or so filters to re-compile?
It wouldn't give you much of a filter selection when doing the animations but it would work for a few good ones.
What would be the most important ones though?
1-Map Object
2-Colorize
3-Brightness and Contrast

_________________
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 2.7 with GAP pre-installed
PostPosted: Thu Jul 28, 2011 6:35 am  (#76) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I believe the process once done on a few may be partially automatizated, anyway my is a believe , developers will know

Also all GMIC filters in theory respond to the requisites of the filters that may be animated by GAP ,
only i fear would be needed to create a iteration_procedure file for each gmic filter , not just 1 for Gmic

_________________
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 2.7 with GAP pre-installed
PostPosted: Thu Jul 28, 2011 9:51 am  (#77) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
PC i tried to get GMIC to do variable settings with GAP it grays out the button.So you can add a effect with GMIC just not with variance in GAP itself.Although GMIC does it's own animations anyways.

_________________
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 2.7 with GAP pre-installed
PostPosted: Thu Jul 28, 2011 12:40 pm  (#78) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
yes because there is not a gmic.iter file to allow that
Anyway Gmic seems to satisfy the 2 conditions needed to create that file(s):
(1-the plugin must be able to operate on a single Drawable, 2- it must be able to run with last_values and in interactive mode.)

Rod wrote:
Although GMIC does it's own animations anyways.


Yes but will crash at soon RAM is insufficent

Gap use memory in a different way:
just a bit more of that barely sufficent to render the first is sufficent for the first frame will allow to process all frames
The difference is basically that GAP will create the first frame, then the second, then the third ...and so on till the end
GMIC will keep everything in memory and then try to render all the required image(s) simultaneusly

You may see the difference just by watching:
...during the process with GAP you could see in the layer window layer added 1 by one,...create frame 1 free the memory, create frame 2 and so on

with gmic nothing will happen till the very end, then all the required layers will be added simultaneusly, or will crash

I suppose that to make l smooth animation effect at a large size with gmic is the command line version that must be used not the plugin

_________________
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 2.7 with GAP pre-installed
PostPosted: Fri Jul 29, 2011 4:40 am  (#79) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
JamesH or (anyone),
I removed ExportSWF.py and replaced it with EXportSWFE.py from your download link.
I still have ALL the Chinese Menus.

I don't understand this part......
Settings\plug-ins\VerticalText.py Filters/Python-Fu/XXXXX

I see the above in my plug-ins folder but am I supposed to do something with that?????

_________________
Image


Top
 Post subject: Re: Gimp 2.7 with GAP pre-installed
PostPosted: Fri Jul 29, 2011 4:55 am  (#80) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
This is the one you want Molly
http://files.myopera.com/area42/files/f ... -export.py

But you will also need SWFTools - which has the PNGs to SWF tool that Gimp needs for this plugin to work correctly. :)
http://www.swftools.org/

This page explains the tool in detail - http://my.opera.com/area42/blog/flash-s ... tartidx=50

_________________
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 new topic Reply to topic  [ 95 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group