I know you can write python
scripts for GIMP
and then through GIMP
you can use these scripts as plug-ins but what I'm trying to achieve is to use GIMP's functions
through Python
as if you would use PIL
or scikit-image
functions through Python
.I don't want to disturb my program user to actually download Gimp
only to execute the one function I need from it.
Can I do such a thing ??? or I'm going too far?
If no, what is the best alternative thing I can do to force Gimp
does the work undercover without disturbing the program user.in this case I think I would be forced to install GIMP
within the installation process which is something I hate.
Update:-
(1) considering libgimp
after googling I found this discussion.in brief words > " libgimp
is just used to allow the GIMP core
and it's plug-ins to communicate" so it doesn't work as I hope.
(2) I thought of accessing the GIMP
code and deleting all unnecessary functions I don't need and keep the only function I'm gonna use,that would be a one function GIMP.Do you think I should do something like that?
Update:-
Yes the problem was solved but I'm still interested in using GIMP
as a library by any means even if it was undercover as Marawan has suggested.Hope you can help.
Thanks.