Has anyone tried just using some of Gallery's core classes/routines without actually using Gallery per say?
I've got a small app of my own, which a portion of involves uploading, resizing, saving multiple versions of, images. I'm currently using a GPL image thumbnailing class and it is OK, but none of various image classes I've found seem as robust as gallery's. I took a quick look through many of the gallery files to see if I could isolate some things. It's pretty complex! I don't mind rolling up the sleeves and digging in, but I wondered if anyone would venture an opinion as to...
a) is this a realistic goal, and
b) is it OK (morally/legally) to do this?
thanks and best regards,
Posts: 3473
You want to use galleries thumbnail creation code? No problem. Gallery uses third party programs called netpbm and imagemagick - so there is no legal or moral implications in using them - at least as far as gallery is concerned.
You might find it easiest just to pick one of those apps and write the exec calls yourself, rather than calling the gallery code.
Posts: 25
Thanks, I understand that One of the things that appealed to me about gallery's code is that it does ues netPBM. The main thing though is actually the entire end user experience... the multiple upload, the progress window, and so on. I guess I am just being incredibly lazy and not wanting to re-write all that ;)
Posts: 3473
Read LICENSE.txt. That covers the moral and legal implications of copying the code.
I'm not a lawyer, but I suspect using the code would make your work derivative, and thus if you distribute it, you'd need to do so under the GPL as well.